Finalizing your module implementation

To complete your module implementation, you have to include the module JavaScript files in your main application page and change the example view from the previous chapter to properly show the links to your new module routes. Let's begin by changing your main application page; go to your app/views/index.ejs file and modify it as follows:

<!DOCTYPE html> <html xmlns:ng="http://angularjs.org"> <head> <title><%= title %></title> </head> <body> <section ng-view></section> <script type="text/javascript"> window.user = <%- user || 'null' %>; </script> <script type="text/javascript" src="/lib/angular/angular.js"></script> <script type="text/javascript" src="/lib/angular-route/angular-route.js"></script> <script type="text/javascript" ...

Get MEAN Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.