Angularjs filter



  • How to make a filter with a condition doesn't matter

    It's like living.

    quests.items|filter:{publish:1,groupe:'live'}
    

    Got to do it. != livemade it. ng-hide="item.groupe == 'live'"♪ but it's interesting how to remove the filter.



  • ♪ https://docs.angularjs.org/api/ng/filter/filter specified:

    The predicate can be negated by prefixing the string with!

    It means to reverse the predicament of the line should start with the sign "!

    quests.items|filter:{publish:1,groupe:'!live'}
    

    Important: filter I'm not checking. equalitydrivingI mean, not

    a == b
    

    a

    a.contains(b)
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2