97. Configure HTTP and environment variable (#12)

This commit is contained in:
Art
2021-09-12 10:54:24 +03:00
parent 6817e13f33
commit 92ecc595f0
2 changed files with 5 additions and 2 deletions

View File

@ -2,13 +2,15 @@ import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser'; import {BrowserModule} from '@angular/platform-browser';
import {AppComponent} from './app.component'; import {AppComponent} from './app.component';
import {HttpClientModule} from "@angular/common/http";
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent AppComponent
], ],
imports: [ imports: [
BrowserModule BrowserModule,
HttpClientModule
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]

View File

@ -3,7 +3,8 @@
// The list of file replacements can be found in `angular.json`. // The list of file replacements can be found in `angular.json`.
export const environment = { export const environment = {
production: false production: false,
apiUrl: 'http://localhost:8080'
}; };
/* /*