The angularfire website reflects the new API. The todomvc source code still uses the old.
What is the difference between angularFire() and $firebase()?
-
10-10-2022 - |
Pregunta
In the angularfire website,
function MyController($scope, $firebase) {
var peopleRef = new Firebase("https://<my-firebase>.firebaseio.com/people");
$scope.people = $firebase(peopleRef);
But in the todomvc source code,
function TodoCtrl($scope, $location, angularFire, filterFilter) {
var url = "https://angularFire.firebaseio.com/todomvc";
var promise = angularFire(url, $scope, 'todos');
Why are the APIs different?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow