Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
30
node_modules/@schematics/angular/guard/implements-files/__name@dasherize__.guard.ts.template
generated
vendored
Executable file
30
node_modules/@schematics/angular/guard/implements-files/__name@dasherize__.guard.ts.template
generated
vendored
Executable file
|
@ -0,0 +1,30 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { <%= routerImports %> } from '@angular/router';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class <%= classify(name) %>Guard implements <%= implementations %> {
|
||||
<% if (implements.includes('CanActivate')) { %>canActivate(
|
||||
route: ActivatedRouteSnapshot,
|
||||
state: RouterStateSnapshot): MaybeAsync<GuardResult> {
|
||||
return true;
|
||||
}
|
||||
<% } %><% if (implements.includes('CanActivateChild')) { %>canActivateChild(
|
||||
childRoute: ActivatedRouteSnapshot,
|
||||
state: RouterStateSnapshot): MaybeAsync<GuardResult> {
|
||||
return true;
|
||||
}
|
||||
<% } %><% if (implements.includes('CanDeactivate')) { %>canDeactivate(
|
||||
component: unknown,
|
||||
currentRoute: ActivatedRouteSnapshot,
|
||||
currentState: RouterStateSnapshot,
|
||||
nextState?: RouterStateSnapshot): MaybeAsync<GuardResult> {
|
||||
return true;
|
||||
}
|
||||
<% } %><% if (implements.includes('CanMatch')) { %>canMatch(
|
||||
route: Route,
|
||||
segments: UrlSegment[]): MaybeAsync<GuardResult> {
|
||||
return true;
|
||||
}<% } %>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue