nicowernli
8/31/2018 - 7:52 AM

App Module with ReactiveForms

App Module with ReactiveForms

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './app.component';
import { SearchBarComponent } from './search-bar/search-bar.component';
import { PlanetService } from './planet.service';

@NgModule({
  imports:      [ BrowserModule, ReactiveFormsModule, HttpClientModule ],
  declarations: [ AppComponent, SearchBarComponent ],
  bootstrap:    [ AppComponent ],
  providers: [PlanetService]
})
export class AppModule { }