Angular2异常:由于它不是已知的本机属性,因此无法绑定到“ routerLink”
显然,Angular2的Beta版比新的要新,因此那里没有太多的信息,但是我正在尝试做一些我认为比较基本的路由。 从https://angular.io网站上窃取快速入门代码和其他代码片段导致了以下文件结构: angular-testapp/ app/ app.component.ts boot.ts routing-test.component.ts index.html 文件填充如下: index.html <html> <head> <base href="/"> <title>Angular 2 QuickStart</title> <link href="../css/bootstrap.css" rel="stylesheet"> <!-- 1. Load libraries --> <script src="node_modules/angular2/bundles/angular2-polyfills.js"></script> <script src="node_modules/systemjs/dist/system.src.js"></script> <script src="node_modules/rxjs/bundles/Rx.js"></script> <script src="node_modules/angular2/bundles/angular2.dev.js"></script> <script src="node_modules/angular2/bundles/router.dev.js"></script> <!-- 2. Configure SystemJS --> <script> System.config({ packages: { app: { format: 'register', defaultExtension: 'js' …