Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created April 22, 2020 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/0f5b14c3cbaedff1b67bc4ab37bd87b6 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/0f5b14c3cbaedff1b67bc4ab37bd87b6 to your computer and use it in GitHub Desktop.
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