try calling anonymous function from ng-change