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?

¿Fue útil?

Solución

The angularfire website reflects the new API. The todomvc source code still uses the old.

Source

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top