angular.js:13920 Error: The $firebaseAuth service accepts a Firebase auth instance (or nothing) instead of a Database reference
angular.js:13920 Error: The $firebaseAuth service accepts a Firebase auth instance (or nothing) instead of a Database reference
我正在测试 angular 火力基地并找到了这个例子。
https://www.sitepoint.com/real-time-status-update-app-angularjs-firebase/
我创建了我的新数据库并启用了电子邮件身份验证方法。
后来改了url在authservice.js
'use strict';
angular
.module('statusApp')
.factory('Auth', AuthService);
function AuthService($firebaseAuth) {
var ref = new Firebase("https://mydburl.firebaseio.com");
return $firebaseAuth(ref);
}
当我试用该应用程序时出现此错误。
angular.js:13920 Error: The $firebaseAuth service accepts a Firebase auth instance (or nothing) instead of a Database reference.
at Object.FirebaseAuth
我似乎在任何地方都找不到类似的东西。
作为@FrankvanPuffelen,问题是由使用旧依赖项引起的
我正在测试 angular 火力基地并找到了这个例子。
https://www.sitepoint.com/real-time-status-update-app-angularjs-firebase/
我创建了我的新数据库并启用了电子邮件身份验证方法。
后来改了url在authservice.js
'use strict';
angular
.module('statusApp')
.factory('Auth', AuthService);
function AuthService($firebaseAuth) {
var ref = new Firebase("https://mydburl.firebaseio.com");
return $firebaseAuth(ref);
}
当我试用该应用程序时出现此错误。
angular.js:13920 Error: The $firebaseAuth service accepts a Firebase auth instance (or nothing) instead of a Database reference.
at Object.FirebaseAuth
我似乎在任何地方都找不到类似的东西。
作为@FrankvanPuffelen,问题是由使用旧依赖项引起的