diff --git a/src/pages/sensors/sensors.html b/src/pages/sensors/sensors.html
index 0a75ed9..3ab3ad1 100644
--- a/src/pages/sensors/sensors.html
+++ b/src/pages/sensors/sensors.html
@@ -16,7 +16,7 @@
-
+
{{sensor.title}}
diff --git a/src/pages/sensors/sensors.ts b/src/pages/sensors/sensors.ts
index 545bdc3..0a563a4 100644
--- a/src/pages/sensors/sensors.ts
+++ b/src/pages/sensors/sensors.ts
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
+import { SensorDetailPage } from '../sensor-detail/sensor-detail';
/**
* Generated class for the SensorsPage page.
@@ -18,6 +19,9 @@ export class SensorsPage {
constructor(public navCtrl: NavController, public navParams: NavParams) {
}
+ viewSensor(sensor){
+ this.navCtrl.push(SensorDetailPage,{sensor:sensor})
+ }
ionViewDidLoad() {
console.log('ionViewDidLoad SensorsPage');
}