摘要:
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from "@angular/router"; import { Product } from "../product/product.component"; import { Observable } from "rxjs/Observable"; i...
阅读全文
posted @ 2018-04-21 22:58
chester·chen
阅读(431)
推荐(0)
编辑
摘要:
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { ProductComponent } from './...
阅读全文
posted @ 2018-04-21 22:03
chester·chen
阅读(127)
推荐(0)
编辑
posted @ 2018-04-21 21:49
chester·chen
阅读(117)
推荐(0)
编辑
摘要:
const routes: Routes = [ { path: '', redirectTo: '/home', pathMatch: 'full' }, { path: 'home', component: HomeComponent }, { path: 'product/:id', component: Prod...
阅读全文
posted @ 2018-04-21 20:58
chester·chen
阅读(121)
推荐(0)
编辑