Properly use ng-model to set variable.