UNPKG

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.

16 lines (12 loc) 432 B
import {Component} from '@angular/core'; import {HomeService} from "../home/home.service"; import {appConstants} from "../../services/app.constants"; @Component({ selector: 'second', templateUrl: 'app/components/remove/remove.component.html', }) export class RemoveComponent { constructor(public homeService: HomeService) { } //router.navigateByUrl('/home/(route1:page1//route2:page2//route3:page3)'); }