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.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/client/src/app/app.resolver.ts b/client/src/app/app.resolver.ts
deleted file mode 100644
index bc054e90b..000000000
--- a/client/src/app/app.resolver.ts
+++ /dev/null
@@ -1,20 +0,0 @@
1/* tslint:disable */
2
3import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'
4import { Injectable } from '@angular/core'
5import { Observable } from 'rxjs/Observable'
6import 'rxjs/add/observable/of'
7
8@Injectable()
9export class DataResolver implements Resolve<any> {
10 public resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
11 return Observable.of({ res: 'I am data'})
12 }
13}
14
15/**
16 * An array of services to resolve routes with data.
17 */
18export const APP_RESOLVER_PROVIDERS = [
19 DataResolver
20]