Hello,

I have a variation on the todoMVC application where I want to store data in 
FireBase. I use AngularFire. I have added AngularFire as a dependency in my 
app, after creating a reference I want to convert the returned object to an 
array containing the objects. I have this:

            .controller("TodoController",["$scope","$filter","$firebase",
                function ($scope,$filter,$firebase){
                    var url = "https://firelab.firebaseio.com/todos";;
                    $scope.todos = $firebase(new Firebase(url));

console.log($filter("orderByPriority")($scope.todos));

I expect to see an array containing the 2 objects in FireBug but instead I 
see the AngularFire object htat contains 2 objects + all the AF $$ methods:

Object { $bind=function(), $add=function(), $save=function(), more...}

plus an error:

Error: [$injector:unpr] Unknown provider: OrderByPriorityFilterProvider <- 
OrderByPriorityFilter


I don't see what's wrong with the DI here.

Can anybody help..?

Marc

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to