diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-23 16:54:21 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-23 16:54:21 +0200 |
commit | de59c48f5f317018e3f746bbe4a7b7efe00109f2 (patch) | |
tree | bc3d007c5aaed8dc72119763f3b1731c5777f218 /client/src/app/app.component.ts | |
parent | def16d33d19153c6583fa8a30634760b3d64d34c (diff) | |
download | PeerTube-de59c48f5f317018e3f746bbe4a7b7efe00109f2.tar.gz PeerTube-de59c48f5f317018e3f746bbe4a7b7efe00109f2.tar.zst PeerTube-de59c48f5f317018e3f746bbe4a7b7efe00109f2.zip |
Client: centralize http res extraction in a service
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 2e0fd13f1..9d05c272f 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -3,7 +3,7 @@ import { Router, ROUTER_DIRECTIVES } from '@angular/router'; | |||
3 | 3 | ||
4 | import { MenuAdminComponent } from './admin'; | 4 | import { MenuAdminComponent } from './admin'; |
5 | import { MenuComponent } from './menu.component'; | 5 | import { MenuComponent } from './menu.component'; |
6 | import { SearchComponent, SearchService } from './shared'; | 6 | import { RestExtractor, RestService, SearchComponent, SearchService } from './shared'; |
7 | import { VideoService } from './videos'; | 7 | import { VideoService } from './videos'; |
8 | 8 | ||
9 | @Component({ | 9 | @Component({ |
@@ -11,7 +11,7 @@ import { VideoService } from './videos'; | |||
11 | template: require('./app.component.html'), | 11 | template: require('./app.component.html'), |
12 | styles: [ require('./app.component.scss') ], | 12 | styles: [ require('./app.component.scss') ], |
13 | directives: [ MenuAdminComponent, MenuComponent, ROUTER_DIRECTIVES, SearchComponent ], | 13 | directives: [ MenuAdminComponent, MenuComponent, ROUTER_DIRECTIVES, SearchComponent ], |
14 | providers: [ VideoService, SearchService ] | 14 | providers: [ RestExtractor, RestService, VideoService, SearchService ] |
15 | }) | 15 | }) |
16 | 16 | ||
17 | export class AppComponent { | 17 | export class AppComponent { |