I followed the tutorial here , but somehow got this error
Unknown provider: currentAuthProvider <- currentAuth
I added currentAuth to all my controllers, what could be wrong?
Firebase 2.0.4 AngularFire 0.9.0
Here's the route file:
.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(); }] } })
I have only two modules:
var warp = angular.module('warp', [ 'firebase', 'ui.router' ])
and this is one of the controllers:
angular.module('warp') .controller("signupCtrl", ["$rootScope", '$scope', 'userFactory', '$window', '$firebase', '$location', 'USERS', 'currentAuth', function($rootScope, $scope, userFactory, $window, $firebase, $location, USERS, currentAuth) {