Q:

AngularJS loading REST API service

In my app I need an API REST connection with server so I've decided to use this one: https://github.com/mgonto/restangular but when I try to load it into my module: 
var app = angular.module('onboarding',['ngRoute','ngSanitize','ngStorage','restangular']);

I get this error:
Failed to instantiate module restangular due to:
Error: [$injector:nomod] 
http://errors.angularjs.org/1.6.2/$injector/nomod?p0=rest...
at http://localhost:3000/scripts/angular.min.js:6:425
at http://localhost:3000/scripts/angular.min.js:25:399
at b (http://localhost:3000/scripts/angular.min.js:24:439)
at http://localhost:3000/scripts/angular.min.js:25:173
at http://localhost:3000/scripts/angular.min.js:41:117
at q (http://localhost:3000/scripts/angular.min.js:7:351)
at g (http://localhost:3000/scripts/angular.min.js:40:476)
at http://localhost:3000/scripts/angular.min.js:41:134
at q (http://localhost:3000/scripts/angular.min.js:7:351)
at g (http://localhost:3000/scripts/angular.min.js:40:476

In documentation on github it is written that only versions between 1.0.X and 1.5.X are supported. Since I use version 1.6.2 that could be the problem. But when I've changed my version to 1.5.9 again I get exactly the same error. 
Is that bug with my code or with this library?  Has anyone had similar error with angular version coincidence?

A:

I think this is the cause: That Restangular depends on angular, angular-resource and underscore. If you don't have Underscore.js in your references, add it and test it once more.
This is not explicitly mentioned in their documentation. You can also use Lodash for this purpose.

