Fixes assignment to ngModel in AngularJS directive.