diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-03-14 13:50:19 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-03-14 13:50:19 +0100 |
commit | dc8bc31be517a53e8fbe7100cfe45cd73f596de0 (patch) | |
tree | c0b0d6641dd352dafff93b8fd33ddb262b59aa47 /client/components/app/app.component.ts | |
parent | bd324a669218f9ed302f7f54b36ee535d25c9733 (diff) | |
download | PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.tar.gz PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.tar.zst PeerTube-dc8bc31be517a53e8fbe7100cfe45cd73f596de0.zip |
Angular application :first draft
Diffstat (limited to 'client/components/app/app.component.ts')
-rw-r--r-- | client/components/app/app.component.ts | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/client/components/app/app.component.ts b/client/components/app/app.component.ts deleted file mode 100644 index e2cebf535..000000000 --- a/client/components/app/app.component.ts +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | import {Component} from 'angular2/core'; | ||
2 | import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from 'angular2/router'; | ||
3 | |||
4 | import { VideosAddComponent } from '../videos/add/videos-add.component'; | ||
5 | import { VideosListComponent } from '../videos/list/videos-list.component'; | ||
6 | import { VideosWatchComponent } from '../videos/watch/videos-watch.component'; | ||
7 | |||
8 | @RouteConfig([ | ||
9 | { | ||
10 | path: '/videos/list', | ||
11 | name: 'VideosList', | ||
12 | component: VideosListComponent, | ||
13 | useAsDefault: true | ||
14 | }, | ||
15 | { | ||
16 | path: '/videos/watch/:id', | ||
17 | name: 'VideosWatch', | ||
18 | component: VideosWatchComponent | ||
19 | }, | ||
20 | { | ||
21 | path: '/videos/add', | ||
22 | name: 'VideosAdd', | ||
23 | component: VideosAddComponent | ||
24 | } | ||
25 | ]) | ||
26 | |||
27 | @Component({ | ||
28 | selector: 'my-app', | ||
29 | templateUrl: 'app/components/app/app.component.html', | ||
30 | styleUrls: [ 'app/components/app/app.component.css' ], | ||
31 | directives: [ ROUTER_DIRECTIVES ], | ||
32 | providers: [ ROUTER_PROVIDERS ] | ||
33 | }) | ||
34 | |||
35 | export class AppComponent { | ||
36 | makeFriends() { | ||
37 | alert('make Friends'); | ||
38 | } | ||
39 | |||
40 | quitFriends() { | ||
41 | alert('quit Friends'); | ||
42 | } | ||
43 | } | ||