I have defined a password field in my webpage using this code snippet :
<input type="password" ng-model="dataItem.password" class="form-control"
name="password"
placeholder="Enter Password"/>
This password field is appearing blank when user didn't enter anything in the field.
How can I display some asterisks(in focus) in password field even when user doesn't enter any password ?
EDIT : Using the "value" attribute works fine if I remove the ng-model attribute from my code. But obviously removing it is not a choice as the password won't get updated in that case.
From my understanding, I think since "dataItem.password" is null initially, and the "value" attribute is ignored, hence, password field is null. Kindly, provide some input on this.