我有一个全新的Angular(rc1)安装.我想我刚刚创建了通常的'Hello something'应用程序但是,当我从浏览器启动应用程序时,我在浏览器控制台上收到以下错误
谁能解释一下我做错了什么?我必须有一些错误,因为其他更复杂的东西在我的机器上与rc1完美配合.
提前致谢
app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'm2t-app',
template: `
Hello something
`,
directives: []
})
export class AppComponent {
}
Run Code Online (Sandbox Code Playgroud)
main.ts
import { bootstrap } from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component';
bootstrap(AppComponent);
Run Code Online (Sandbox Code Playgroud)
的index.html
<html>
<head>
<title>MEAN2 Training Class</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<!-- 2. Configure SystemJS --> …Run Code Online (Sandbox Code Playgroud) angular ×1