如何你对Angular文件目录结构不熟悉,请出门右转,补补课.
一: 文字说明
- 当你在命令行中输入 ng serve 后
- ng 会根据 angular-cli.json 中的 main元素 找到 应用入口文件main.ts
- main.ts 再加载 根模块AppModule
- AppModule 启动Angular模块(@ngModule)
- @ngModule 为 AppModule 添加元数据,并指定了顶层组件AppComponent
- AppComponent 中我们就可以为所欲为了
二: 图解说明

2431

被折叠的 条评论
为什么被折叠?



