官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 潍坊市| 托克托县| 炎陵县| 民勤县| 抚州市| 万安县| 潜江市| 固安县| 仁寿县| 海淀区| 罗甸县| 乌拉特中旗| 西盟| 大连市| 天门市| 措勤县| 乌什县| 江华| 蒙阴县| 滕州市| 株洲县| 涞源县| 天柱县| 绍兴县| 寿阳县| 康马县| 嘉鱼县| 五常市| 县级市| 娄底市| 扬州市| 杭锦旗| 湖口县| 泉州市| 喀喇沁旗| 迭部县| 旅游| 石嘴山市| 芦山县| 锦屏县| 新蔡县|