Created
November 9, 2013 09:27
-
-
Save nadouani/7383600 to your computer and use it in GitHub Desktop.
Angular JS: Show a list of filtered items or an empty message From http://stackoverflow.com/questions/14615495/angularjs-placeholder-for-empty-result-from-filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li ng-repeat="bar in filteredBars = (bars | filter:barFilter)"> | |
{{bar.name}} | |
</li> | |
</ul> | |
<p ng-hide="filteredBars.length">Nothing here!</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to achieve a placeholder with a dynamic filter, how can I achieve this?
Thanks!
*ngFor="let example of scale.examples | filter:{ type: 'riff'}"