1.0.0 • Published 9 years ago
ngsilent v1.0.0
ngSilent
Adds silent mode to AngularJS.
How to use
- Add link to ngSilent.js file
Connect the module
var site = angular.module('site', 'module1', 'ngSilent', 'ngRoute');
IMPORTANT 'ngSilent' should be defined before 'ngRoute'.
var site = angular.module('site', ['module1', 'ngRoute', 'ngSilent']);
This will not work.
- Add $ngSilentLocation wherever you want:
function SomeController($ngSilentLocation)
and then
$ngSilentLocation.silent('/new/path/');
URL will be changed but related controller is not called.
1.0.0
9 years ago