jstools-events

0.1.3 • Public • Published

jEngine: Events wercker status

Bower version npm version Build Status Installation

npm install jstools-events --save

or

bower install jstools-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');
 
  }]);
 

Package Sidebar

Install

npm i jstools-events

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • gsusgz