I\'m getting \"Invalid argument\" when using angularJS ,TextArea with placeholder, on IE10+.
This will ONLY happen when the textarea node is closed with
I know this question is now pretty old, but thought I'd throw in my thoughts too. We ran into this issue several months ago and had to drum up a fix, so we ended up using this directive to solve the problem:
mod.directive('placeHolder', [
function(){
return {
restrict: 'A',
link: function(scope, elem, attrs){
scope.$watch(attrs.placeHolder, function(newVal,oldVal){
elem.attr('placeholder', newVal);
});
}
};
}
]);
And then you can use it in your views:
Once your model data arrives (possibly asynchronously), the directive will add a traditional placeholder
attribute to the and it'll work as you would want.
It's not the greatest solution, but it works. Hope that helps.