This commit is contained in:
Bluepr1nt
2017-04-05 13:33:07 +02:00
parent 6a09b8edbc
commit 8781832254
4 changed files with 8 additions and 6 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -162,8 +162,8 @@ var DetailComponent = (function () {
this.route = route;
}
DetailComponent.prototype.ngOnInit = function () {
var id = this.route.snapshot.params['id'];
console.log("DetailComponentID= " + id);
this.id = this.route.snapshot.params['id'];
console.log("DetailComponentID= " + this.id);
// this.dataService
// .get(id)
// .subscribe(res => {
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -2
View File
@@ -11,13 +11,15 @@ import {LineChartComponent} from "./chart.component";
export class DetailComponent implements OnInit {
public id:string;
constructor(private dataService: DataService,
private route: ActivatedRoute) {}
ngOnInit(): void {
let id = this.route.snapshot.params['id'];
console.log("DetailComponentID= " +id);
this.id = this.route.snapshot.params['id'];
console.log("DetailComponentID= " + this.id);
// this.dataService
// .get(id)