Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//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