javascript - Trouble with filtering in AngularJS -


the problem facing follows: if select particular tag/author tags/author dropdown, results getting narrowed down expected; however, when click 'clear' button, content disappears. have refresh page results displayed again.

i have application using same logic , in clicing 'clear' button not lead results disappearing. i'm bit concerned why it's working in 1 instance , not in other.

i'd appreciate if can me understand i'm going wrong here.

the foll part of filter logic:

<md-input-container> <label>enter search term</label> <input type="text" ng-model="classifiedsfilter"> </md-input-container>  <md-input-container> <label>tags</label> <md-select ng-model="tag"> <md-option ng-repeat="tag in tags | orderby: 'tostring()'" value="{{ tag }}"> <!-- tags here refers newly defined array stores 1 instance of tags against 'tags' property on each object/word --> {{ tag }}  </md-option> </md-select> </md-input-container> 

the foll filters on md-card:

<md-card ng-repeat="classified in classifieds | filter: classifiedsfilter | filter: tag:true | filter: expression | filter: book:true | filter: author:true | orderby: order" flex-xs="100" flex-sm="40" flex-gt-sm="30" class="classified"> 


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -