Skip to content

Instantly share code, notes, and snippets.

View fexx's full-sized avatar
🎯
Focusing

Fernando Evangelista fexx

🎯
Focusing
View GitHub Profile
@fexx
fexx / app.module.ts
Last active October 19, 2019 20:44
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: [
@fexx
fexx / db.json
Last active October 19, 2019 20:44
Arquivo db.json (Consumindo API REST com HttpClient no Angular 8)
{
"cars": [
{
"id": 1,
"model": "BMW X7",
"color": "Preto",
"price": 455.95
},
{
"id": 2,