Add nested route config for authentication
This commit is contained in:
		
					parent
					
						
							
								dc993b2879
							
						
					
				
			
			
				commit
				
					
						c3f9ba7bca
					
				
			
		
					 1 changed files with 8 additions and 3 deletions
				
			
		|  | @ -9,9 +9,14 @@ export const routes: Routes = [ | |||
|     component: LandingPageComponent, | ||||
|   }, | ||||
|   { | ||||
|     path: 'home', | ||||
|     component: HomepageComponent, | ||||
|     path: '**', | ||||
|     canActivate: [authGuard], | ||||
|   }, | ||||
|     children: [ | ||||
|       { | ||||
|         path: 'home', | ||||
|         component: HomepageComponent, | ||||
|       }, | ||||
|     ] | ||||
|   } | ||||
| ]; | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue