O'Reilly logo

Node.js 6.x Blueprints by Fernando Monteiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required