ng-hide="editMode": [sourcecode language=“html”] [/sourcecode]
editMode is a $scope variable in your controller. So the last thing to do is to get the editMode value by invoking the previously defined
Ajax and editMode
Another usage of this approach could be preventing of ajax calls when the page is being edited. There is already an example of this idea (calling ajax only in a view mode) in the standard SharePoint 2013. When you edit a page which has a Microfeed webpart. It won’t get any data until you save the page and switch to the normal page mode.