I have this in html code:
<md-list>
<md-list-item ng-repeat="schema in dash.filteredSchemas = (dash.items | filter: {name: dash.schemaListFilter}) | orderBy: 'schema.id'">
<h4>{{ ::schema.name }}</h4>
</md-list-item>
</md-list>
<div ng-show="dash.filteredSchemas.length">Empty</div>
The problem is that I don't see any results when using this syntax - where 10 results should be shown if filter in not filled.
Note: no console errors. Changing to:
<md-list>
<md-list-item ng-repeat="schema in dash.items | filter: {name: dash.schemaListFilter} | orderBy: 'schema.id'">
<h4>{{ ::schema.name }}</h4>
</md-list-item>
</md-list>
<div ng-show="dash.filteredSchemas.length">Empty</div>
Shows results but (obviously) not shows the empty message when filter applied and no result match.
What is wrong with that?!