Routing
Route Guards
Example:
const routerConfig: Routes = [
{
path: '',
component: PublicComponent
}, {
path: 'restricted',
component: RestrictedComponent,
canActivate: [AngularTokenService]
}
];Redirect original requested URL
Example:
Last updated
Was this helpful?