How to access the $ngModelController from inside the Controller without a Form and without a Directive
问题 Maybe it's a rookie mistake, but I can't seem to access the $scope.model 's $ngModelController so I can grab the $viewValue from it. I have an input without a form (im using ui-mask directive): <input type="text" ng-model="inicio" name="inicio" ui-mask="99/99/9999"> // inside my controller $scope.inicio = dateFilter((new Date).getTime(), 'dd/MM/yyyy'); ui-mask set the $modelValue a different value than $viewValue, making it hard to send formatted data to the server. When the $scope.inicio