Beta 14 - ng-repeat list with sorting/filtering not working


#1

I just updated from beta-13 to beta-14 and one of my ion-lists has stopped working.

Here is the code:

<div class="item row list-header">
                    <div class="col" ng-click="sort('name')">
                        <span>Reference/Name</span>
                        <i class="icon icon-margin ion-android-arrow-dropdown-circle" ng-show="selectedSort.predicate == 'displayValue' && selectedSort.reverse == 'true'"></i>
                        <i class="icon icon-margin ion-android-arrow-dropup-circle" ng-show="selectedSort.predicate == 'displayValue' && selectedSort.reverse == 'false'"></i>
                    </div>
                    <div class="col" ng-click="sort('date')">
                        <span>Last Assessed</span>
                        <i class="icon icon-margin ion-android-arrow-dropdown-circle" ng-show="selectedSort.predicate == 'lastAssessed' && selectedSort.reverse == 'false'"></i>
                        <i class="icon icon-margin ion-android-arrow-dropup-circle" ng-show="selectedSort.predicate == 'lastAssessed' && selectedSort.reverse == 'true'"></i>
                    </div>
                </div>


<ion-list class="list-alternate">
            <ion-item ng-repeat="subject in subjectsToDisplay | orderBy:selectedSort.predicate:selectedSort.reverse |  filter: {displayValue: search.text}" ng-click="selectSubject(subject)">
                <div class="row list-row">
                    <div class="col">
                        {{subject.displayValue}}
                    </div>
                    <div class="col">
                        {{subject.prettyDate}}
                    </div>
                </div>
            </ion-item>
        </ion-list>

My ng-repeat sorting has stopped working using properties on my ‘selectedSort’ object for some reason

Is this an Angular change to ng-repeat filter/sort?

Any ideas?


Have the same problem after upgrading to Beta 14 ... is seriously contemplating going back
#2

Worked out that the problem was my ‘reverse’ argument for the orderBy was a string rather than boolean. This worked fine in the previous version but now it only seems to accept a boolean.


#3

Could be part of the angular 1.3 update.

https://docs.angularjs.org/guide/migration#migrating-from-1-2-to-1-3