You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
In new version something happened and now filters does not work as expected. Example
<inputtype="text" ng-model="q"><ul><ling-repeat="item in items | filter: {name: q}">{{item.name}}</li></ul>
And
varapp=angular.module('plunker',[]);app.controller('MainCtrl',function($scope){$scope.items=[{"id": "1","postcode": "4700","name": "Rockhampton","description": "One of the major cities in Central Queensland."},{"id": "16","postcode": "4214","name": "Keppel Island","description": "Awesome islands, very few people, heaps of fish beautiful clear water."}];});
What happen that id q is not defined it does not show anything. Here is the plunkr
PLease check when you just open it first time list is empty. Only when you start search something and then delete search text, then it shows the list. Is you change angulars.js link to version 1.3.5 then it works.
The problem is this one. In real world I have filter which is select.
<selectng-model="filter.reg" ng-options="cnt.Region for cnt in form.result"><optionvalue="">Any Region</option></select>
it means that in the filter I use | filter: {Region: filter.reg.Region}. But when I chose Any region is is always undefined. So I never see the list of items unless I select filter.
The text was updated successfully, but these errors were encountered:
This looks like a duplicate of #10419 --- we hope to have all of the filter regressions merged shortly. This was not an intentional breaking change, but a regression resulting from poor test coverage.
In new version something happened and now filters does not work as expected. Example
And
What happen that id
q
is not defined it does not show anything. Here is the plunkrPLease check when you just open it first time list is empty. Only when you start search something and then delete search text, then it shows the list. Is you change angulars.js link to version 1.3.5 then it works.
The problem is this one. In real world I have filter which is select.
it means that in the filter I use
| filter: {Region: filter.reg.Region}
. But when I chose Any region is is always undefined. So I never see the list of items unless I select filter.The text was updated successfully, but these errors were encountered: