I noticed that my placeholder value doesn’t work when the type=“text” and I use the ng-model directive on the element. For example the placeholder does not show with this code,
You’re right, I have my model defaulted to " ". What is strange though is that I have an empty string for a model attribute on a type=“email” input and the placeholder works.
Yeah, it seems like email fields behave differently in that case.
Anyway, using " " as a default is not a very good practice. null or an empty string are much better, if only for the reason they evaluate to false.