I am trying to configure the current user inside the config part of my angular.js app and am getting the following error:
Error: Unknown provider: $resource from manyminds
This is how I am passing resource in:
myApp.config(function($routeProvider, $resource) {
I include the resource file before I include the app.js
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular-resource.js"></script>
<script src="assets/js/app.js"></script>
I don't get that error when passing $resource into any of my controllers - only when passing it into config. Can I not use $resource in config?