Skip to content

garakh/ngSilent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngSilent

Adds silent mode to AngularJS.

How to use

  1. Add link to ngSilent.js file

  2. 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.

  1. Add $ngSilentLocation wherever you want:

    function SomeController($ngSilentLocation)

and then

 $ngSilentLocation.silent('/new/path/');

URL will be changed but related controller is not called.

About

Add silent mode to AngularJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published