import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';


import { AppComponent } from './app.component';


@NgModule({			#装饰器
  declarations: [	#声明组件、指令和管道
    AppComponent	#
  ],
  imports: [		#需要的模块
    BrowserModule	#浏览器模块
  ],
  providers: [],	#声明模块中提供了什么服务
  bootstrap: [AppComponent]		#声明模块的组组件是什么
})
export class AppModule { }	#类

  

相关文章:

  • 2021-11-23
  • 2021-09-13
  • 2022-12-23
  • 2021-11-23
  • 2021-09-22
  • 2021-10-01
  • 2021-04-18
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2021-12-25
相关资源
相似解决方案