Only administrators can view data on this page 4 |
5 | 6 |Some secret data that only admins can see below
8 | 9 | Home 10 | 11 |Role: {{secrets.role}}
14 |Claim: {{secrets.claim}}
15 |Authentication & Authorization Tutorial (Roles/Claims/Identity/JWT) 4 |
5 |Find this course on YouTube 6 |
7 | 8 |Github 9 |
10 |Only managers can view data on this page 4 |
5 | 6 |Some secret data that only managers can see below
8 | 9 | Home 10 | 11 |Role: {{secrets.role}}
14 |Claim: {{secrets.claim}}
15 |Everyone can view this page 4 |
5 | 6 |Welcome to all users
8 | 9 | Home 10 |footer works!
2 | -------------------------------------------------------------------------------- /SPA/src/app/shared/components/footer/footer.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oopcoders/Angular-Core-Authentication/86ce1407fc27e2ee914995fb41693192a11d25bb/SPA/src/app/shared/components/footer/footer.component.scss -------------------------------------------------------------------------------- /SPA/src/app/shared/components/footer/footer.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FooterComponent } from './footer.component'; 4 | 5 | describe('FooterComponent', () => { 6 | let component: FooterComponent; 7 | let fixture: ComponentFixture