- Mastering Angular Components
- Gion Kunz
- 115字
- 2021-07-23 17:23:43
Main application NgModule
Let's also take a look at the main NgModule generated by the Angular CLI. You can find it in the path src/app/app.module.ts:
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppComponent} from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
bootstrap: [AppComponent],
providers: []
})
export class AppModule { }
If you've been following the section Angular NgModule, about NgModule within the first chapter of this book, there should not be any surprises when looking at our generated main application module.
Our application currently only consists of one component, the AppComponent, which we're declaring within our AppModule. We also specify that this component should be bootstrapped when this module is being bootstrapped.
推薦閱讀
- Building E-commerce Sites with VirtueMart Cookbook
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(2021—2023)
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實戰(zhàn)
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實踐和未來演進(jìn)
- Mastering Dart
- 5G技術(shù)與標(biāo)準(zhǔn)
- SAE原理與網(wǎng)絡(luò)規(guī)劃
- 現(xiàn)代通信系統(tǒng)(第5版)
- 物聯(lián)網(wǎng),So Easy!
- 黑客與反黑工具使用詳解
- INSTANT Social Media Marketing with HootSuite
- 走近2050:注意力、互聯(lián)網(wǎng)與人工智能
- 5G新型多址技術(shù)
- 巧學(xué)活用CISCO網(wǎng)絡(luò)典型配置
- Twilio Cookbook(Second Edition)