June 2014
Intermediate to advanced
696 pages
38h 52m
English
As part of the Express server configuration, you load the ./comment_routes.js file as shown in Listing 27.4. Listing 27.5 provides the routes necessary to get the page, photo, and comment data, as well as add additional comments to photos or pages.
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 photos.html template is rendered on line 11. The routes in lines ...
Read now
Unlock full access