function performHTTPRequest(){
return new Promise((resolve, reject) => {
this.http.get(this.url).subscribe(data => {
resolve(data)
},
error => {
reject(error);
},
);
});
}
runAfterContentInit(){
console.log(//PLACEHOLDER
performHTTPRequest().then(response => {
return response;
}));
}
-Placeholder- displays ZoneAwarePromise in the console. How can I access the value of the response?