Created
April 22, 2020 20:45
-
-
Save manoj-choudhari-git/0f5b14c3cbaedff1b67bc4ab37bd87b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import { MsalGuard } from '@azure/msal-angular'; | |
import { HomeComponent } from './home/home.component'; | |
const routes: Routes = [ | |
{ | |
path: '', | |
canActivate: [ | |
MsalGuard | |
], | |
pathMatch: 'prefix', | |
component: HomeComponent, | |
} | |
]; | |
@NgModule({ | |
imports: [RouterModule.forRoot(routes)], | |
exports: [RouterModule] | |
}) | |
export class AppRoutingModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment