I recently followed a tutorial here and encountered this error:
Unknown provider: currentAuthProvider <- currentAuth
I made sure to add currentAuth to all my controllers, but I'm still getting the error. Any idea what could be causing it?
Firebase 2.0.4
AngularFire 0.9.0
This is how my routes file looks like:
.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('home', {
url: '/',
templateUrl: 'views/home.html',
controller: "homeCtrl",
resolve: {
"currentAuth": ["userFactory", function(userFactory) {
return userFactory.$waitForAuth();
}]
}
})
Currently, I only have two modules included:
var warp = angular.module('warp', [
'firebase',
'ui.router'
])
Here's an excerpt from one of my controllers:
angular.module('warp')
.controller("signupCtrl", ["$rootScope", '$scope', 'userFactory', '$window', '$firebase', '$location', 'USERS', 'currentAuth',
function($rootScope, $scope, userFactory, $window, $firebase, $location, USERS, currentAuth) {