I\'ve tried using the uppercase filter but it does not work. I\'ve tried doing it two ways:
<
If you want to change model and value, use:
angular.module('MyApp').directive('uppercased', function() {
return {
require: 'ngModel',
link: function(scope, element, attrs, ngModel) {
element.bind("blur change input", function () {
ngModel.$setViewValue($(this).val().toUpperCase());
$(this).val($(this).val().toUpperCase());
});
element.css("text-transform","uppercase");
}
};
});
Then add uppercased to your html input text