mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
24 lines
725 B
TypeScript
24 lines
725 B
TypeScript
import * as ng from 'angular2/core';
|
|
import * as router from 'angular2/router';
|
|
import { Http, HTTP_BINDINGS } from 'angular2/http';
|
|
import { NavMenu } from '../nav-menu/nav-menu';
|
|
import { Home } from '../home/home';
|
|
import { FetchData } from '../fetch-data/fetch-data';
|
|
import { Counter } from '../counter/counter';
|
|
|
|
@ng.Component({
|
|
selector: 'app'
|
|
})
|
|
@router.RouteConfig([
|
|
{ path: '/', component: Home, name: 'Home' },
|
|
{ path: '/counter', component: Counter, name: 'Counter' },
|
|
{ path: '/fetch-data', component: FetchData, name: 'FetchData' }
|
|
])
|
|
@ng.View({
|
|
template: require('./app.html'),
|
|
styles: [require('./app.css')],
|
|
directives: [NavMenu, router.ROUTER_DIRECTIVES]
|
|
})
|
|
export class App {
|
|
}
|