Created
August 31, 2018 07:52
-
-
Save nicowernli/c94ea7038b1a596af41feec6d67eed8f to your computer and use it in GitHub Desktop.
App Module with ReactiveForms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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