detailed view for sensors

development
Thiemann96 5 years ago
parent 3b78c2e8db
commit 40718824b3

@ -16,7 +16,7 @@
<ion-content padding>
<ion-grid>
<ion-row *ngFor="let sensor of box.sensors">
<ion-card>
<ion-card (click)="viewSensor(sensor)">
<ion-card-header>
<ion-title>
{{sensor.title}}

@ -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');
}

Loading…
Cancel
Save