Erstellen einer Login-App in AngularJS mit Firebase, und bekommen diese Probleme.Firebase Auth AngularJs
1 .TypeError: auth.$createUser is not a function
- Error: permission_denied: Client doesn't have permission to access the desired data.
var app = angular.module('weatherApp',
['ngRoute', 'firebase'])
.constant('FIREBASE_URL', 'https://weatherapp-9a183.firebaseio.com');
app.controller('registerController',
['$scope', '$firebaseObject', 'FIREBASE_URL', function ($scope, $firebaseAuth, FIREBASE_URL) {
var ref = new Firebase(FIREBASE_URL);
var auth = $firebaseAuth(ref);
auth.$createUser({
email: "[email protected]",
password: "123"
});
}]);