private async fetchData(){
const data = await this.httpClient.get(this.apiUrl).toPromise();
console.log("Data: " + JSON.stringify(data));
}
get_details(id_Course: number,str: string) {
let promise = new Promise((resolve, reject) =>{
let apiURL = this.APIUrl+'Units/UnitsDetails/'+id_Course;
this.httpClient.get(apiURL).toPromise()
.then(
res =>{
console.log(res);
}
)
})
return promise;