Capitalize directive Not allowing to replace IOS dictionary suggested value


#1

.directive(‘capitalize’, function() {
return {
require: ‘ngModel’,
link: function(scope, element, attrs, modelCtrl) {
modelCtrl.$parsers.push(function(input) {
return input ? input.toUpperCase() : “”;
});
element.css(“text-transform”, “uppercase”);
}
};
})