mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit removes all the docregion tags in examples that are not being referenced in any doc. PR Close #40479
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
// #docplaster
|
|
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { APP_CONFIG, HERO_DI_CONFIG } from './app.config';
|
|
import { AppComponent } from './app.component';
|
|
import { CarComponent } from './car/car.component';
|
|
import { HeroesComponent } from './heroes/heroes.component';
|
|
import { HeroesTspComponent } from './heroes/heroes-tsp.component';
|
|
import { HeroListComponent } from './heroes/hero-list.component';
|
|
import { InjectorComponent } from './injector.component';
|
|
import { Logger } from './logger.service';
|
|
import { TestComponent } from './test.component';
|
|
import { UserService } from './user.service';
|
|
|
|
import { ProvidersModule } from './providers.module';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
ProvidersModule
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
CarComponent,
|
|
HeroesComponent,
|
|
HeroesTspComponent,
|
|
HeroListComponent,
|
|
InjectorComponent,
|
|
TestComponent
|
|
],
|
|
// #docregion providers
|
|
providers: [
|
|
// #enddocregion providers
|
|
Logger,
|
|
// #docregion providers
|
|
UserService,
|
|
{ provide: APP_CONFIG, useValue: HERO_DI_CONFIG }
|
|
],
|
|
// #enddocregion providers
|
|
exports: [ CarComponent, HeroesComponent ],
|
|
bootstrap: [ AppComponent ]
|
|
})
|
|
export class AppModule { }
|