2016-03-13 01:11:19 +08:00
|
|
|
///<reference path="../../typings/tsd.d.ts"/>
|
|
|
|
|
2016-03-12 21:57:22 +08:00
|
|
|
import { Component } from 'angular2/core';
|
|
|
|
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from 'angular2/router';
|
|
|
|
import {LoginComponent} from "./login/login.component";
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-13 01:11:19 +08:00
|
|
|
|
2016-03-12 21:57:22 +08:00
|
|
|
@Component({
|
|
|
|
selector: 'pi-gallery2-app',
|
|
|
|
template: `<router-outlet></router-outlet>`,
|
|
|
|
directives: [ROUTER_DIRECTIVES],
|
|
|
|
providers: [
|
|
|
|
ROUTER_PROVIDERS
|
|
|
|
]
|
|
|
|
})
|
|
|
|
@RouteConfig([
|
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'Login',
|
|
|
|
component: LoginComponent,
|
|
|
|
useAsDefault: true
|
|
|
|
}
|
|
|
|
])
|
|
|
|
export class AppComponent {
|
2016-03-13 01:11:19 +08:00
|
|
|
constructor(){
|
|
|
|
|
|
|
|
}
|
2016-03-12 21:57:22 +08:00
|
|
|
}
|