1.0.0 • Published 7 years ago

events-wrapper v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

jsTools: Events npm version Bower version

Build Status wercker status

Installation

npm install events-wrapper --save

# alternatively you can use bower (minified version by default)
bower install events-wrapper --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');

  }]);
1.0.0

7 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago