From 92ecc595f00a9aa4f340fa3c5ed74be3cc03e33a Mon Sep 17 00:00:00 2001 From: Art Date: Sun, 12 Sep 2021 10:54:24 +0300 Subject: [PATCH] 97. Configure HTTP and environment variable (#12) --- support-portal-frontend/src/app/app.module.ts | 4 +++- support-portal-frontend/src/environments/environment.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/support-portal-frontend/src/app/app.module.ts b/support-portal-frontend/src/app/app.module.ts index dbe4d56..bd96530 100644 --- a/support-portal-frontend/src/app/app.module.ts +++ b/support-portal-frontend/src/app/app.module.ts @@ -2,13 +2,15 @@ import {NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {AppComponent} from './app.component'; +import {HttpClientModule} from "@angular/common/http"; @NgModule({ declarations: [ AppComponent ], imports: [ - BrowserModule + BrowserModule, + HttpClientModule ], providers: [], bootstrap: [AppComponent] diff --git a/support-portal-frontend/src/environments/environment.ts b/support-portal-frontend/src/environments/environment.ts index f56ff47..b7d6f94 100644 --- a/support-portal-frontend/src/environments/environment.ts +++ b/support-portal-frontend/src/environments/environment.ts @@ -3,7 +3,8 @@ // The list of file replacements can be found in `angular.json`. export const environment = { - production: false + production: false, + apiUrl: 'http://localhost:8080' }; /*