$authWithPassword is not a function in AngularFire 2.x
问题 I've seen posts about this problem before, but they're either outdated or offer a solution very similar to my setup. Basically, I have two functions in my controller: authCtrl.login and authCtrl.register. The register's call to Auth.$createUserWithEmailAndPassword() works fine, but the login's call to Auth.$authWithPassword() does not, as I'm getting a "..is not a function" error. Can't for the life of me figure out what is wrong here. Here's my setup: auth.service.js: angular.module(