generator-angular2-with-router
Version:
A simple angular2 application having 3 pages with angular2 in build router to navigate between pages. It have all basic functionality which a standard angualr2 application needed.
22 lines (14 loc) • 395 B
text/typescript
import {Component, OnInit} from '@angular/core';
import {Router, ActivatedRoute, Params} from "@angular/router";
import {HomeService} from "./components/home/home.service";
({
selector: 'app',
templateUrl: 'app/app.component.html'
})
export class AppComponent {
constructor(
private router: Router,
public homeService: HomeService
) {
}
}