Question

I've been playing around with AppGyver as well as and decided to use RestAngular for my REST API calls. But I'm having trouble adding the dependancy to the app.

In the controller I've included the dependancy:

var mainModule = angular.module('SteroidsAngular', ['restangular'])

I've also included the script on my pages:

<script src="javascripts/restangular/dist/restangular.js"></script>

Running the app or the pages in a web browser (before and after I've tried injecting RestAngular into controllers) just causes blank alerts or browser dialogs to show. What would be the best way to get this to work?

Was it helpful?

Solution 2

The issue was a Underscore.js dependancy which I failed to load up. Found this through the console.

Thanks for the help

OTHER TIPS

Try $ steroids generate ng-scaffold in a new Steroids project for an example how to implement Restangular in Steroids.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top