这里是我的代码片段import * as angular from "angular";
selector: 'app-reportreport.component.css']export class ReportComponent implements OnInit {
constructor(private $location:angular.ILocationService
我正在处理这个angular2项目,在这个项目中我使用ROUTER_DIRECTIVES从一个组件导航到另一个组件。我试着使用RouteParams,但它得到了页面对象undefined。下面是我的代码:import {Component, OnInit ,Input} from 'angular2/core';
im