Created
January 30, 2016 04:16
-
-
Save SirajGadhia/7157bdb8996ae588f554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.siraj360.com/ng2/ :: A single page application developed with Angular 2 (beta) and Bootstrap 4 (alpha). | |
import { Component } from 'angular2/core'; | |
import { ROUTER_DIRECTIVES, RouteConfig } from 'angular2/router'; | |
import { HomeComponent } from '../home/home.component'; | |
import { FotterComponent } from '../menu/fotter.component'; | |
import { HeaderComponent } from '../menu/header.component'; | |
import { EmployeeListComponent } from '../employee/employeeList.component'; | |
@Component({ | |
selector: 'app', | |
templateUrl: 'app/components/app/app.component.html', | |
directives: [ROUTER_DIRECTIVES, FotterComponent, HeaderComponent], | |
}) | |
@RouteConfig([ | |
{ path: '/', as: 'Home', component: HomeComponent, useAsDefault: true }, | |
{ path: '/employees', as: 'Employees', component: EmployeeListComponent } | |
]) | |
export class AppComponent { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment