Error: No controller: ngModel Error: No controller: ngModel angularjs angularjs

Error: No controller: ngModel


ngChange requires ngModel directive. But you're using ngChange for the same purpose of ngModel. Just go with:

<input id="reverseOrder" type="checkbox" ng-model="reverseOrder"/>