-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathapp.ts
32 lines (28 loc) · 825 Bytes
/
app.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {Component} from 'angular2/core';
import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router';
import {FORM_PROVIDERS} from 'angular2/common';
import '../style/app.scss';
import {Api} from './services/api/api';
import {Home} from './components/home/home';
import {About} from "./components/about/about";
/*
* App Component
* Top Level Component
*/
@Component({
selector: 'app', // <app></app>
providers: [...FORM_PROVIDERS, Api],
directives: [...ROUTER_DIRECTIVES],
pipes: [],
styles: [require('./app.scss')],
template: require('./app.html')
})
@RouteConfig([
{path: '/', component: Home, name: 'Home'},
{path: '/About', component: About, name: 'About'}
])
export class App {
url: string = 'https://github.com/preboot/angular2-universal-windows-app';
constructor(public api: Api) {
}
}