I'm currently trying to "save" all the content in a webpage after a piece is edited. IE, a user clicks into an input, enters some data, and as soon as he/she clicks elsewhere I want to run a function to gather all the model data and save it in browser local storage.
<input ng-blur="functionName()" />
That's the normal way of doing it, but let's say i have tons of inputs:
<input ng-blur="functionName()" />
<input ng-blur="functionName()" />
<input ng-blur="functionName()" />
<input ng-blur="functionName()" />
is there anything I can do to apply the ng-blur
effect to all inputs
of a page or must I put ng-blur
attribute into every input
?