Bugfixes
This commit is contained in:
@@ -15,7 +15,7 @@ export class DetailComponent implements OnInit {
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
let id = this.route.params['id'];
|
||||
let id = this.route.snapshot.params['id'];
|
||||
|
||||
this.dataService
|
||||
.get(id)
|
||||
|
||||
@@ -27,7 +27,7 @@ export class DeviceComponent implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
goToDetail(id:string): void {
|
||||
goToDetails(id:string): void {
|
||||
this.router.navigate(['/detail', id]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user