Added debug text

This commit is contained in:
Bluepr1nt
2017-04-04 14:41:44 +02:00
parent 0161e9cb32
commit aefd347a3f
4 changed files with 9 additions and 6 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -29,7 +29,7 @@ var DataService = (function () {
this.baseUrl = 'http://localhost:3000/webapi/data';
}
DataService.prototype.get = function () {
console.log('getting data');
console.log('Getting data');
var lineChartData$ =
//<LineData>( {data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'} );
this.http
@@ -50,8 +50,9 @@ var DataService = (function () {
var _a;
}());
function mapData(response) {
console.log('mapping data', __WEBPACK_IMPORTED_MODULE_3__line_data__["a" /* LineData */]);
console.log('Mapping data', __WEBPACK_IMPORTED_MODULE_3__line_data__["a" /* LineData */]);
var nums = response.json().map(toData);
console.log(nums);
var line = ({ data: nums, label: "Line 1" });
return line;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -2
View File
@@ -12,7 +12,7 @@ export class DataService {
constructor(private http : Http){}
get(): Observable<LineData> {
console.log('getting data');
console.log('Getting data');
let lineChartData$ =
//<LineData>( {data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'} );
this.http
@@ -32,9 +32,11 @@ export class DataService {
}
function mapData(response:Response): LineData {
console.log('mapping data', LineData);
console.log('Mapping data', LineData);
let nums = response.json().map(toData);
console.log(nums);
let line = <LineData>({data: nums, label: "Line 1"});
return line;
}