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

App module

Open web-app/src/app/app.module.ts. This file consists of the @NgModule declaration, which defines all the components and services that we are going to use.

We have created the following components:

  • AppComponent: Application root component that holds the router outlet
  • NavBarComponent: This is the navigation bar component that appears on the all the pages. This component automatically detects the authentication state and shows the menu bar accordingly
  • LoginComponent: This deals with the login feature
  • RegisterComponent: To work with registration with the API engine
  • HomeComponent: This component displays all the devices attached to the current logged-in user
  • DeviceComponent: This component displays information about one device
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