mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
24 lines
537 B
TypeScript
24 lines
537 B
TypeScript
|
import { Component } from 'angular2/core';
|
||
|
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from 'angular2/router';
|
||
|
import {LoginComponent} from "./login/login.component";
|
||
|
|
||
|
|
||
|
|
||
|
@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 {
|
||
|
}
|