Skip to content

Instantly share code, notes, and snippets.

@nicowernli
Created August 31, 2018 07:52
Show Gist options
  • Save nicowernli/c94ea7038b1a596af41feec6d67eed8f to your computer and use it in GitHub Desktop.
Save nicowernli/c94ea7038b1a596af41feec6d67eed8f to your computer and use it in GitHub Desktop.
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 { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment