We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a080bb2 + b9048db commit 239e229Copy full SHA for 239e229
README.md
@@ -234,6 +234,13 @@ Almost all applications that implement authentication need some indication of wh
234
<button ng-if="!isAuthenticated">Log In</button>
235
<button ng-if="isAuthenticated">Log Out</button>
236
```
237
+**Note:** `authManager` set `isAuthenticated` on your `$rootScope` object, If you are using component-based architecture,
238
+your component `$scope` is isolated scope, it does not inherits `$rootScope` properties, you need to access `$rootScope` from component's template:
239
+
240
+```html
241
+ <button ng-if="!$root.isAuthenticated">Log In</button>
242
+ <button ng-if="$root.isAuthenticated">Log Out</button>
243
+```
244
245
### Getting Authentication State on Page Refresh
246
0 commit comments