@@ -1,11 +1,13 @@
|
||||
/** Angular Imports */
|
||||
import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
/**
|
||||
* A route strategy allowing for explicit route reuse.
|
||||
* Used as a workaround for https://github.com/angular/angular/issues/18374
|
||||
* To reuse a given route, add `data: { reuse: true }` to the route definition.
|
||||
*/
|
||||
@Injectable()
|
||||
export class RouteReusableStrategy extends RouteReuseStrategy {
|
||||
|
||||
public shouldDetach(route: ActivatedRouteSnapshot): boolean {
|
||||
|
||||
Reference in New Issue
Block a user