June 2014
Intermediate to advanced
696 pages
38h 52m
English
As part of the Express server configuration, you load the ./rich_ui_routes.js file shown in Listing 29.2. Listing 29.3 provides the routes necessary to load the tabbed view, access the words database, access the backend weather service, and get the necessary static files.
Lines 6–9 implement the static routes to support getting the AngularJS, CSS, JavaScript, images, and AngularJS partial templates used in this example. The images and AngularJS lib folders are located in a sibling directory to the project. The other static files are in the ./static folder inside the project.
Notice that when the user accesses the root location for the site (/), the rich_ui.html template is rendered on line 10. The /weather ...
Read now
Unlock full access