diff options
Diffstat (limited to 'client/src/app/app.resolver.ts')
-rw-r--r-- | client/src/app/app.resolver.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/client/src/app/app.resolver.ts b/client/src/app/app.resolver.ts index 45774b8d1..bc054e90b 100644 --- a/client/src/app/app.resolver.ts +++ b/client/src/app/app.resolver.ts | |||
@@ -1,12 +1,14 @@ | |||
1 | import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; | 1 | /* tslint:disable */ |
2 | import { Injectable } from '@angular/core'; | 2 | |
3 | import { Observable } from 'rxjs/Observable'; | 3 | import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router' |
4 | import 'rxjs/add/observable/of'; | 4 | import { Injectable } from '@angular/core' |
5 | import { Observable } from 'rxjs/Observable' | ||
6 | import 'rxjs/add/observable/of' | ||
5 | 7 | ||
6 | @Injectable() | 8 | @Injectable() |
7 | export class DataResolver implements Resolve<any> { | 9 | export class DataResolver implements Resolve<any> { |
8 | public resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { | 10 | public resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { |
9 | return Observable.of({ res: 'I am data'}); | 11 | return Observable.of({ res: 'I am data'}) |
10 | } | 12 | } |
11 | } | 13 | } |
12 | 14 | ||
@@ -15,4 +17,4 @@ export class DataResolver implements Resolve<any> { | |||
15 | */ | 17 | */ |
16 | export const APP_RESOLVER_PROVIDERS = [ | 18 | export const APP_RESOLVER_PROVIDERS = [ |
17 | DataResolver | 19 | DataResolver |
18 | ]; | 20 | ] |