closes #1905 Added section for RouterLinkActive Added section for global query params and fragments Added section for RouterState Added wildcard route to example configuration Updated code samples Renamed .guard files to .service Renamed interfaces.ts to can-deactivate-guard.service.ts Removed unused files
		
			
				
	
	
		
			12 lines
		
	
	
		
			265 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			265 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| // #docregion
 | |
| import { Injectable }     from '@angular/core';
 | |
| import { CanActivate }    from '@angular/router';
 | |
| 
 | |
| @Injectable()
 | |
| export class AuthGuard implements CanActivate {
 | |
|   canActivate() {
 | |
|     console.log('AuthGuard#canActivate called');
 | |
|     return true;
 | |
|   }
 | |
| }
 |