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?

有帮助吗?

解决方案 2

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

Thanks for the help

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top