console.log added

This commit is contained in:
Bluepr1nt
2017-04-04 14:13:12 +02:00
parent 9e8d0b1a05
commit 91b2682629
10 changed files with 4078 additions and 22466 deletions
+3 -5
View File
@@ -11,7 +11,7 @@ export class DataService {
constructor(private http : Http){}
get(): Observable<LineData> {
console.log('getting data');
let lineChartData$ =
//<LineData>( {data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'} );
this.http
@@ -19,10 +19,7 @@ export class DataService {
, {headers: this.getHeaders()})
.map(mapData);
return Observable.create(observer => {
observer.next(lineChartData$);
observer.complete();
});
return lineChartData$;
}
@@ -34,6 +31,7 @@ export class DataService {
}
function mapData(response:Response): LineData {
console.log('mapping data', LineData);
return response.json().map(toData)
}