aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.resolver.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/app.resolver.ts')
-rw-r--r--client/src/app/app.resolver.ts14
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 @@
1import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; 1/* tslint:disable */
2import { Injectable } from '@angular/core'; 2
3import { Observable } from 'rxjs/Observable'; 3import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'
4import 'rxjs/add/observable/of'; 4import { Injectable } from '@angular/core'
5import { Observable } from 'rxjs/Observable'
6import 'rxjs/add/observable/of'
5 7
6@Injectable() 8@Injectable()
7export class DataResolver implements Resolve<any> { 9export 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 */
16export const APP_RESOLVER_PROVIDERS = [ 18export const APP_RESOLVER_PROVIDERS = [
17 DataResolver 19 DataResolver
18]; 20]