diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 17:36:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-12 10:58:16 +0100 |
commit | 63c4db6d71b98523753c51747e308682d9a2e8a0 (patch) | |
tree | d26c0d092ce016f2afe56bf71b08ca4698fe673f /client/src/app/app.resolver.ts | |
parent | 908f6e5e38e85cc0debab0051b7fa34b13025f96 (diff) | |
download | PeerTube-63c4db6d71b98523753c51747e308682d9a2e8a0.tar.gz PeerTube-63c4db6d71b98523753c51747e308682d9a2e8a0.tar.zst PeerTube-63c4db6d71b98523753c51747e308682d9a2e8a0.zip |
Move to angular cli
Diffstat (limited to 'client/src/app/app.resolver.ts')
-rw-r--r-- | client/src/app/app.resolver.ts | 20 |
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 | |||
3 | import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router' | ||
4 | import { Injectable } from '@angular/core' | ||
5 | import { Observable } from 'rxjs/Observable' | ||
6 | import 'rxjs/add/observable/of' | ||
7 | |||
8 | @Injectable() | ||
9 | export 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 | */ | ||
18 | export const APP_RESOLVER_PROVIDERS = [ | ||
19 | DataResolver | ||
20 | ] | ||