Revert some changes and bugfixes

This commit is contained in:
2017-04-05 11:24:58 +02:00
parent efc2f1284d
commit ba5715c613
6 changed files with 19 additions and 20 deletions
+4 -4
View File
@@ -56,13 +56,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
var DataService = (function () {
function DataService(http) {
this.http = http;
this.dashboardURL = '/webapi/data';
this.baseUrl = '/webapi/data';
}
DataService.prototype.dashboard = function () {
DataService.prototype.get = function () {
var lineChartData$ =
//<LineData>( {data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'} );
this.http
.get(("" + this.dashboardURL), { headers: this.getHeaders() })
.get(("" + this.baseUrl), { headers: this.getHeaders() })
.map(mapData);
return lineChartData$;
};
@@ -323,7 +323,7 @@ var LineChartComponent = (function () {
LineChartComponent.prototype.ngOnInit = function () {
var _this = this;
this.dataService
.dashboard()
.get()
.subscribe(function (res) {
console.log("Received from service:");
console.log(res);