1
AngularFire(FirebaseとAngularJSの間のインターフェイスライブラリ)を使用しています。AngularFireを使用してFirebase JSメソッドを呼び出す方法
javascriptメソッドsendEmailVerification()を角度コードで呼びたいと思います。私は、次のコードを実装するとき、私はエラーを得る:$scope.authObj.sendEmailVerification is not a function.
おそらく私はAngularJS(AngularFire)でjavascriptメソッドを使用しようとしているためです。
AngularFireを使用してJavascriptメソッドを使用する方法はありますか?
$scope.signUp = function() {
$scope.authObj.$createUserWithEmailAndPassword($scope.email, $scope.password)
.then(function(firebaseUser) {
$scope.sendVerifyEmail();
}).catch(function(error) {
console.error("Error: ", error);
});
}
$scope.sendVerifyEmail = function(){
$scope.authObj.sendEmailVerification();
}