AngularJS ng-attr-placeholder 在输入类型文本中不起作用

Mar*_*ita 5 html placeholder angularjs internet-explorer-11

我意识到当光标打开时 Internet Explorer 11 中的占位符属性不起作用(真是太惊讶了!)尽管w3schools说它与 ie10+ 兼容(即使他们自己尝试例子在 ie 中不起作用)。

这是用户想要登录时看到的内容:

在此处输入图片说明

所以我找到了关于ng-attr-placeholder 的信息,但我似乎无法让它工作。

<input type="password" name="password" id="password" ng-model="user.password" class="form-control" ng-attr-placeholder="Password" required="" autofocus="">
Run Code Online (Sandbox Code Playgroud)

任何想法我做错了什么?

先感谢您!