angular-tiny-eventemitter
angular-tiny-eventemitter copied to clipboard
can use asterisk
person.on('test.*', function(){}); // capture all
person.on('test.one', function(){});
person.on('test.two', function(){});
person.emit('test.one');
person.emit('test.two');