1 src文件夹

  1. import { NgModule } from '@angular/core';
  2. //angular的核心模块
  3. import { BrowserModule } from '@angular/platform-browser';
  4. //浏览器解析模块
  5. import { AppComponent } from './app.component';
  6. //App组件模块
  7. import {HttpClientModule} from '@angular/common/http';
  8. //http数据请求模块
  9. import {MovieItemComponent} from '../components/MovieItem/MovieItem.component'
  10. //组件模块
  11. @NgModule({
  12. //装饰器
  13. declarations: [
  14. //声明(配置)当前项目运行依赖的组件
  15. AppComponent,
  16. MovieItemComponent
  17. ],
  18. imports: [
  19. //配置当前项目运行依赖的其他模块
  20. BrowserModule,
  21. HttpClientModule
  22. ],
  23. providers: [],
  24. //配置项目所需要的服务
  25. bootstrap: [AppComponent]
  26. //指定应用的主视图
  27. })
  28. export class AppModule { }
  29. //通过导出AppMoudle这个模块,来启动应用

2 google插件

Augury

3 vscode插件

Angular Snippets (Version 11)
Angular Files