jengine-events

    0.1.3 • Public • Published

    jEngine: Events wercker status

    Bower version npm version Build Status Installation

    npm install jengine-events --save

    or

    bower install jengine-events --save

    Usage

    var obj = new Events();
     
    obj.on('foo', function () {
      flag = true;
    });
     
    obj.trigger('foo');

    AngularJS Module

    angular.module('myApp', ['jstools.events'])
     
      .controller('AppCtrl', ['$scope', 'Events', function ($scope, Events) {
     
        var obj = new Events();
     
        obj.$$on('foo', function () {
          flag = true;
        });
     
        obj.$$trigger('foo');
     
      }]);
     

    Install

    npm i jengine-events

    DownloadsWeekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • gsusgz