ng serve --aot --optimization=false
node -v
npm install -g n
n latest
示例代码:
import { Component } from '@angular/core';
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] })
export class AppComponent { title = 'my-app'; }