From 40a075fc02258fc4e92d6b0580a52b76f0700500 Mon Sep 17 00:00:00 2001 From: insanity Date: Sun, 29 Apr 2018 21:13:21 +0900 Subject: [PATCH] target router --- src/packages/sensor/component/detail/detail.component.html | 2 +- src/packages/sensor/component/detail/detail.component.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/packages/sensor/component/detail/detail.component.html b/src/packages/sensor/component/detail/detail.component.html index 419ccc0..49b6626 100644 --- a/src/packages/sensor/component/detail/detail.component.html +++ b/src/packages/sensor/component/detail/detail.component.html @@ -37,7 +37,7 @@
- + diff --git a/src/packages/sensor/component/detail/detail.component.ts b/src/packages/sensor/component/detail/detail.component.ts index 72dea64..b2d2023 100644 --- a/src/packages/sensor/component/detail/detail.component.ts +++ b/src/packages/sensor/component/detail/detail.component.ts @@ -70,7 +70,8 @@ export class DetailComponent implements OnInit, AfterContentInit, OnDestroy { }); } - onTargetClick(event) { + onTargetClick(target) { + this.router.navigate(['sensors'], { queryParams: { target: target.id } }); } }