angular 项目启动分析

113 阅读1分钟

angular项目启动分析

2.png

(1)angular.json:NG项目的配置文件

  • index: ./src/index.html
  • main: ./src/main.ts (2)main.ts:
  • bootstrapModule(AppModule) (3) app.module.ts
  • bootstrap:[AppComponent] (4) app.component.ts
  • selector:'app-root'
  • templateUrl:'app.component.html' (5) app.component.html
  • html片段......