August 2017
Beginner
298 pages
7h 4m
English
Our Weather Widget needs to make an HTTP request to the server. For this, we can reuse the APICall module we built previously in Chapter 3, Event Registration App. Also, since we will be using the Dark Sky service for displaying weather information, we can use their icon library, Skycons, for displaying the weather icon. Currently, Skycons is not available in npm. You can get both the files from the book code Chapter05\weatherdependencies directory or from the completed code files.
Currently, your JS folder will be structured as follows:
.├── CustomElements│ └── Weather│ └── Weather.js└── home.js
You should add the apiCall.js file under the CustomElements/Weather/services/api/apiCall.js path and the skycons.js file ...
Read now
Unlock full access