0.3.0 • Published 9 years ago

ng-once v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

ng-once

ng-once is a module that introduces $rootScope.$once. This allows an event handler to be bound to an event, but it will be invoked only once.

Installation

Bower

$ bower install ng-once --save

npm

$ npm install ng-once

Usage

angular.module('demo').controller('DemoCtrl', function ($rootScope) {
	$rootScope.$once('$routeChangeSuccess', function () {
		// This function will be invoked on only the first $routeChangeSuccess
	});
});
0.3.0

9 years ago

0.2.0

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago