
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
angular-browserify-event-dispatcher
Advanced tools
Event Dispatcher for AngularJS that wraps $rootScope.$emit and $rootScope.$on for event bus that can be used by Controllers and any other actor in the application that requires eventing
Sometimes it's nice to use a global event bus in your applications. This dispatcher wraps a bit of the eventing functionality from $rootScope to create an event bus that other actors in your application can use.
The dispatching controller is a mixin for your controllers to enhance their behavior.
angular.module('my-module', [
require('angular-browserify-event-dispatcher').name
])
/**
* This is how you'd use the dispatcher
*/
.controller('myController', function ($scope, DispatchingController) {
var time = new Date();
// `this` scope can be an issue here. It might be
// required to assign `var myController = this`
// in some cases.
//
// this could be `angular.extend` vs the Object.mixin ;)
angular.extend(this, new DispatchingController($scope));
this.listen('hi', function (event, msg) {
console.log('event handled:', time, msg, event);
});
this.dispatch('hi', 'from controller')
})
.service('myService', function(dispatch) {
dispatch('hi', 'from service');
})
FAQs
Event Dispatcher for AngularJS that wraps $rootScope.$emit and $rootScope.$on for event bus that can be used by Controllers and any other actor in the application that requires eventing
The npm package angular-browserify-event-dispatcher receives a total of 9 weekly downloads. As such, angular-browserify-event-dispatcher popularity was classified as not popular.
We found that angular-browserify-event-dispatcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.