Creating the AngularJS application
Finally we will create the AngularJS application, so follow the next steps:
- Inside the client/js folder, create a new file called app.js and add the following code:
(function(){ 'use strict'; angular .module('bikesGallery', ['ui.router','lbServices']); })();
Don't worry about the lbServices dependency at this point; later in this chapter we will see how to create this file using the AngularJS SDK tool built with the Loopback framework.
- Inside the client/js folder, create a new file called app.config.js and add the following code:
(function(){ 'use strict'; angular .module('bikesGallery') .config(configure) .run(runBlock); configure.$inject = ['$urlRouterProvider', '$httpProvider', '$locationProvider']; function ...
Get Node.js 6.x Blueprints 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.