I\'m using Http.get to retrieve a configuration file. I\'ve done this many times with success, but this time nothing. I\'m not seeing the trace in my console, and I\'m not seein
You need to have subscribe()
in order to recieve the data
this._http.get('./assets/dashboard/json/config.json')
.map(res => res.json())
.subscribe(
data => this.ResResponse= data,
err => this.logError(err),
() => console.log('Completed')
);
logError(err) {
console.error('There was an error: ' + err);
}
you need to call subscribe() in order that the request is executed.