console log undefined here
this.http.get(this.rootURL + "/Report/"+id)
.toPromise().then(res => this.report = res as Report);
console.log(this.report);
}
here console log the data
this.http.get(this.rootURL + "/Report/"+id)
.toPromise().then(res => console.log(res));
console.log(this.report);
}
what can I do to assign result to Result Object