Skip to content

Instantly share code, notes, and snippets.

@fexx
Last active October 19, 2019 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fexx/7d5d23af82ab9283af3afc72e38104d7 to your computer and use it in GitHub Desktop.
Save fexx/7d5d23af82ab9283af3afc72e38104d7 to your computer and use it in GitHub Desktop.
app.module.ts (Consumindo API REST com HttpClient no Angular 8)
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment