File

src/app/manage-learn/core/services/api-utils.service.ts

Index

Properties
Methods

Constructor

constructor(commonUtilService: CommonUtilService)
Parameters :
Name Type Optional
commonUtilService CommonUtilService No

Methods

getBaseUrl
getBaseUrl(key)
Parameters :
Name Optional
key No
Returns : any
Async initilizeML
initilizeML()
Returns : any

Properties

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]
  }
}

results matching ""

    No results matching ""