mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
24 lines
704 B
TypeScript
24 lines
704 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.ts';
|
|
import { Home } from '../home/home.ts';
|
|
import { About } from '../about/about';
|
|
import { Counter } from '../counter/counter';
|
|
|
|
@ng.Component({
|
|
selector: 'app'
|
|
})
|
|
@router.RouteConfig([
|
|
{ path: '/', component: Home, name: 'Home' },
|
|
{ path: '/about', component: About, name: 'About' },
|
|
{ path: '/counter', component: Counter, name: 'Counter' }
|
|
])
|
|
@ng.View({
|
|
template: require('./app.html'),
|
|
styles: [require('./app.css')],
|
|
directives: [NavMenu, router.ROUTER_DIRECTIVES]
|
|
})
|
|
export class App {
|
|
}
|