Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- import { AuthGuardService } from './service/auth-guard.service';
- const routes: Routes = [
- { path: '' , redirectTo: 'login', pathMatch: 'full' },
- { path: 'login', component: LoginComponent },
- { path: 'set-token', component: AuthorizationComponent },
- { path: 'home' , canActivate: [AuthGuardService], component: HomeComponent },
- { path: 'artist/:name', canActivate: [AuthGuardService], component: ArtistComponent }
- ];
Add Comment
Please, Sign In to add comment