How to use AngularJS filtering with Firebase

1

I have a problem at the moment that I want to filter a array of my database of Firebase , and it is that when filtering I get the following error:

  

Error: [$ injector: unpr]    link $ injector / unprp0 = orderByPriorityFilterProvider% 20% 3C - "" rderByPriorityFilter

of this code:

<div class="row buscador_anime">
    <div class="small-12 medium-12 columns">
            Filtrar Busqueda:
    <input type="text" ng-model="buscador">
     </div>
 </div>
 <div class="resultado_anime">
   <ul ng-repeat="(key, value) in firebase | orderByPriority | filter:buscador">
   <li><a href="{{ key }}">{{ value.titulo }}</a></li>
   </ul>
 </div>

Help me please, I feel it has to do with the Orderby but I do not know what it is

    
asked by Anthony Rosas 30.12.2016 в 21:56
source

1 answer

0

The orderByPriority filter was removed in Angular release 0.8,

Items are now sorted by priority by default.

Remove the filter.

   <ul ng-repeat="(key, value) in firebase | filter:buscador">
    
answered by 30.12.2016 / 22:06
source