前情链接Angular 路由项目构建,路由重定向,路由选中 三、angular get传值 ctrl + c 停止项目运行 1、新建一个组件newDetail ng g component components/newDetail 2、news.component.ts中定义一个数组 import { Component, OnInit } from '@angular/core'; @Component({ selector: &#