Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


Member since Jun 23, 2013

Recent Blog Comments By Keyamoon

  • Filter vs. ngHide With ngRepeat In AngularJS

    Posted on Jun 23, 2013 at 8:09 AM

    I had done something similar in the past, without using an extra controller. I used filtering inside ng-show. Like this: <li ng-repeat="friend in friends" ng-show="!search || ([]|filter:search).length"> {{}} </li> You can see a live demo ... read more »