mirror of
https://github.com/sensebox/blockly-app
synced 2025-07-04 21:30:20 +02:00
detailed view for sensors
This commit is contained in:
parent
3b78c2e8db
commit
40718824b3
2 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue