Creating the AngularJS application

Finally we will create the AngularJS application, so follow the next steps:

  1. 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.

  2. 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.