mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit aligns the code and style in the `getting-started-v0` docs example with that of the `getting-started` example more closely (except for the the parts that are intentionally different between the two). PR Close #40197
27 lines
708 B
TypeScript
27 lines
708 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { RouterModule } from '@angular/router';
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { TopBarComponent } from './top-bar/top-bar.component';
|
|
import { ProductListComponent } from './product-list/product-list.component';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
ReactiveFormsModule,
|
|
RouterModule.forRoot([
|
|
{ path: '', component: ProductListComponent },
|
|
])
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
TopBarComponent,
|
|
ProductListComponent
|
|
],
|
|
bootstrap: [
|
|
AppComponent
|
|
]
|
|
})
|
|
export class AppModule { }
|