chore: router move import changes
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
import {provide, Component, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser-dynamic';
|
||||
import {CanActivate, RouteConfig, ComponentInstruction, ROUTER_DIRECTIVES} from '@angular/router';
|
||||
import {
|
||||
CanActivate,
|
||||
RouteConfig,
|
||||
ComponentInstruction,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
|
||||
function checkIfWeHavePermission(instruction: ComponentInstruction) {
|
||||
|
@ -6,7 +6,7 @@ import {
|
||||
RouteParams,
|
||||
ComponentInstruction,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router';
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
|
||||
// #docregion routerCanDeactivate
|
||||
|
@ -1,6 +1,11 @@
|
||||
import {Component, provide, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser-dynamic';
|
||||
import {OnActivate, ComponentInstruction, RouteConfig, ROUTER_DIRECTIVES} from '@angular/router';
|
||||
import {
|
||||
OnActivate,
|
||||
ComponentInstruction,
|
||||
RouteConfig,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
|
||||
// #docregion routerOnActivate
|
||||
|
@ -1,6 +1,11 @@
|
||||
import {Component, Injectable, provide, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser-dynamic';
|
||||
import {OnDeactivate, ComponentInstruction, RouteConfig, ROUTER_DIRECTIVES} from '@angular/router';
|
||||
import {
|
||||
OnDeactivate,
|
||||
ComponentInstruction,
|
||||
RouteConfig,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@ import {
|
||||
CanReuse,
|
||||
RouteParams,
|
||||
OnReuse
|
||||
} from '@angular/router';
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user