27 lines
783 B
TypeScript
27 lines
783 B
TypeScript
|
import { BrowserModule } from '@angular/platform-browser';
|
||
|
import { NgModule } from '@angular/core';
|
||
|
import { AppRoutingModule } from './app-routing.module';
|
||
|
import { FormsModule } from '@angular/forms';
|
||
|
import { HttpClientModule } from '@angular/common/http';
|
||
|
import { AppComponent } from './app.component';
|
||
|
import { UserListComponent } from './user-list/user-list.component';
|
||
|
import { UserFormComponent } from './user-form/user-form.component';
|
||
|
import { UserService } from './service/user.service';
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [
|
||
|
AppComponent,
|
||
|
UserListComponent,
|
||
|
UserFormComponent
|
||
|
],
|
||
|
imports: [
|
||
|
BrowserModule,
|
||
|
AppRoutingModule,
|
||
|
HttpClientModule,
|
||
|
FormsModule
|
||
|
],
|
||
|
providers: [UserService],
|
||
|
bootstrap: [AppComponent]
|
||
|
})
|
||
|
export class AppModule { }
|