Updating ng-model.