You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ng-navigation-service was designed in tandem with the ng-authentication-service, but it is not a hard requirement. The configured security service must support the following API:
15
18
16
19
1.```boolean isAuthenticated()```
17
20
2.```[String] roles()```
18
21
19
-
##Basic Setup
22
+
##Basic Setup
20
23
21
24
Add this module to your app as a dependency:
22
25
```JAVASCRIPT
@@ -37,7 +40,7 @@ Inject $navigation as a parameter in declarations that require it:
To override the default configuration options, configure the module with an options argument during application configuration and provide overrides for any of the following options.
43
46
@@ -59,15 +62,15 @@ app.config(['$navigationProvider', function ($navigationProvider) {
59
62
}]);
60
63
```
61
64
62
-
##API
65
+
##API
63
66
64
-
###inAudience
67
+
###inAudience
65
68
```JAVASCRIPT
66
69
// returns true if the user is in any of the specified audiences
67
70
$navigation.inAudience('X', 'Y', 'Z');
68
71
```
69
72
70
-
###isActiveLocation
73
+
###isActiveLocation
71
74
```JAVASCRIPT
72
75
// returns true if the location is the current active location
73
76
// the following will match any location that starts with the /dashboard route
0 commit comments