build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -9,12 +9,11 @@ import { Injectable } from '@angular/core';
|
||||
*/
|
||||
@Injectable()
|
||||
export class RouteReusableStrategy extends RouteReuseStrategy {
|
||||
|
||||
public shouldDetach(route: ActivatedRouteSnapshot): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
public store(route: ActivatedRouteSnapshot, detachedTree: DetachedRouteHandle | null): void { }
|
||||
public store(route: ActivatedRouteSnapshot, detachedTree: DetachedRouteHandle | null): void {}
|
||||
|
||||
public shouldAttach(route: ActivatedRouteSnapshot): boolean {
|
||||
return false;
|
||||
@@ -25,7 +24,6 @@ export class RouteReusableStrategy extends RouteReuseStrategy {
|
||||
}
|
||||
|
||||
public shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {
|
||||
return (future.routeConfig === curr.routeConfig) || future.data.reuse;
|
||||
return future.routeConfig === curr.routeConfig || future.data.reuse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ import { AuthenticationGuard } from '../authentication/authentication.guard';
|
||||
* Provides helper methods to create routes.
|
||||
*/
|
||||
export class Route {
|
||||
|
||||
/**
|
||||
* Creates routes using the shell component and authentication.
|
||||
* @param routes The routes to add.
|
||||
@@ -22,10 +21,9 @@ export class Route {
|
||||
path: '',
|
||||
component: ShellComponent,
|
||||
children: routes,
|
||||
canActivate: [AuthenticationGuard],
|
||||
canActivate: [AuthenticationGuard]
|
||||
// Reuse ShellComponent instance when navigating between child views
|
||||
// data: { reuse: true }
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user