src/app/manage-learn/core/services/api-utils.service.ts
Properties |
|
Methods |
|
constructor(commonUtilService: CommonUtilService)
|
||||||
Parameters :
|
getBaseUrl | ||||
getBaseUrl(key)
|
||||
Parameters :
Returns :
any
|
Async initilizeML |
initilizeML()
|
Returns :
any
|
Public appName |
Public appVersion |
Public assessmentBaseUrl |
Type : string
|
Public projectsBaseUrl |
Type : string
|
import { Injectable } from '@angular/core';
import { CommonUtilService } from '@app/services';
@Injectable({
providedIn: 'root'
})
export class ApiUtilsService {
public assessmentBaseUrl: string;
public projectsBaseUrl: string;
public appVersion;
public appName;
constructor(
private commonUtilService: CommonUtilService,
) { }
async initilizeML() {
this.appName = !this.appName ? await this.commonUtilService.getAppName() : this.appName
}
getBaseUrl(key) {
return this[key]
}
}