diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
commit | df98563e2104b82b119c00a3cd83cd0dc1242d25 (patch) | |
tree | a9720bf01bac9ad5646bd3d3c9bc7653617afdad /client/src/app/app.resolver.ts | |
parent | 46757b477c1adb5f98060d15998a3852e18902a6 (diff) | |
download | PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.gz PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.zst PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.zip |
Use typescript standard and lint all files
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 | ] |