Skip to content
Snippets Groups Projects

Et fe replace env.js with angular environments

Merged Reid Givens requested to merge ET-FE-replace-env.js-with-angular-environments into main
16 files
+ 77
107
Compare changes
  • Side-by-side
  • Inline
Files
16
import {Injectable} from '@angular/core';
import {ResultType} from "../model/result-type";
import {BehaviorSubject, Observable} from "rxjs";
import {HttpClient} from "@angular/common/http";
import {EnvService} from "../../env/env.service";
@Injectable({
providedIn: 'root'
@@ -13,11 +11,7 @@ export class ResultTypeService {
private _resultType: BehaviorSubject<ResultType> = new BehaviorSubject(this.resultType);
public readonly resultType$: Observable<ResultType> = this._resultType.asObservable();
private serverAddress: string = '';
constructor(private http: HttpClient, private env: EnvService) {
this.serverAddress = env.apiUrl;
}
constructor() {}
updateResultType(name: string): void {
this.resultType = ResultType.getResultType(name);
Loading