Skip to Content
Practical Internet of Things with JavaScript
book

Practical Internet of Things with JavaScript

by Arvind Ravulavaru
December 2017
Intermediate to advanced
296 pages
5h 56m
English
Packt Publishing
Content preview from Practical Internet of Things with JavaScript

Updating the mobile app

To reflect the new template in the mobile app, we will update mobile-app/src/pages/view-device/view-device.html, as follows:

<ion-header> <ion-navbar> <ion-title>Mobile App</ion-title> </ion-navbar> </ion-header> <ion-content padding> <div *ngIf="!lastRecord"> <h3 class="text-center">Loading!</h3> </div> <div *ngIf="lastRecord"> <ion-list> <ion-item> <ion-label>Name</ion-label> <ion-label>{{device.name}}</ion-label> </ion-item> <ion-item> <ion-label>X-Axis</ion-label> <ion-label>{{lastRecord.data.acclVals.x}} {{lastRecord.data.acclVals.units}}</ion-label> </ion-item> <ion-item> <ion-label>Y-Axis</ion-label> <ion-label>{{lastRecord.data.acclVals.y}} {{lastRecord.data.acclVals.units}}</ion-label> </ion-item> <ion-item> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driving JavaScript Applications

Test-Driving JavaScript Applications

Venkat Subramaniam
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck

Publisher Resources

ISBN: 9781788292948Supplemental Content