Skip to content

Commit

Permalink
Adding message to view to display matching recipe count
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Oct 27, 2017
1 parent e307eed commit b624d74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/recipeList.html
Expand Up @@ -15,6 +15,9 @@
<label for="keywords">Search:</label>
<input type="text" class="form-control" ng-model="keywords">
</div>
<div class=container" ng-show="keywords">
<p>Found {{ (recipes | filter:categoryFilterFn | search:keywords).length }} matching recipes</p>
</div>
<pagination
ng-model="currentPage"
total-items="(recipes | filter:categoryFilterFn | search:keywords).length"
Expand Down

0 comments on commit b624d74

Please sign in to comment.