close

  menu      DavidRodenas
CONTACT  

Small library with a service to implement the MVS architecture with updateable events.


app.factory('yourService', function(drpxUpdateable) {
    var service = {
        change: function(...) {
            ...
            service.update();
        },
        update: drpxUpdateable('yourUpdate')
    }
    return service;
}

Setup

Install the dependence with bower or npm:

$ npm install --save drpx-updateable

Include the javascript library into your application.

<script src="bower_components/drpx-updateable/drpx-updateable.js"></script>

Add the module to your module.

angular.module('yourModule', [ 'drpxUpdateable' ]);

See Github project for more information about usage.