Changed if condition

This commit is contained in:
2017-04-05 14:20:52 +02:00
parent b2aca0ad71
commit bde3e0777c
5 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<div *ngIf="data">
<div *ngIf="loaded">
<line-chart [label]="label" [data]="data"></line-chart>
<line-chart [label]="label" [data]="data2"></line-chart>
+4
View File
@@ -18,6 +18,8 @@ export class DetailComponent implements OnInit {
public data2:LineData;
public loaded:boolean = false;
constructor(private dataService: DataService,
private route: ActivatedRoute) {}
@@ -34,6 +36,8 @@ export class DetailComponent implements OnInit {
this.data = res.HOV;
this.data2 = res.TOE1;
this.loaded = true;
});
}