An angular service to call in a deferred mode update from multiple objects.
mode.update = function() {
...
};
drpxUpdateService.update(model);
Add the bower component drpx-components
:
$ bower install --save drpx-components
Add the dependency to your index.html
:
<script src="bower_components/drpx-components/drpxUpdateService.js"></script>
Add the dependency to you YourApp.js
:
angular.module('YourApp', [
// ...your other dependencies...
'drpx.update',
]);
Invoke it in html code. You can call as many times as you want with as many models as you want. Models must have update
method so they can be invoked. See Examples.