aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.resolver.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
commitdf98563e2104b82b119c00a3cd83cd0dc1242d25 (patch)
treea9720bf01bac9ad5646bd3d3c9bc7653617afdad /client/src/app/app.resolver.ts
parent46757b477c1adb5f98060d15998a3852e18902a6 (diff)
downloadPeerTube-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.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]