1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/app.component.ts

34 lines
765 B
TypeScript
Raw Normal View History

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 05:19:24 +08:00
import {NetworkService} from "./model/network.service";
import {LoginService} from "./login/login.service";
2016-03-12 21:57:22 +08:00
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: [
2016-03-13 05:19:24 +08:00
ROUTER_PROVIDERS,
NetworkService,
LoginService
2016-03-12 21:57:22 +08:00
]
})
@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
}