I have the following input:
<input type="submit" value="Publish"
ng-click="submit(editAddNotification)" project-focus-invalid-field>
When I run it it inserts the change into my database (a PUT).
However, I need to call a certain function that is in another controller at the moment of completing the PUT.
I would like to know if there is a possibility to use $ watch in ng-click for when it triggers call this function that I created
scope.enableEdit = function() {
showAction([
'editNavItem',
'addNavItem',
'editNavItemContent'
]);
};
The problem happens because when it adds something to the database it resets the input parameters.