I have a login page for my angularjs site and I'm using the angularjs material library's inputs.
On first page load LastPass detects the email and password inputs and auto fills them. The problem is if I leave the page and navigate back to the login page (without a full browser refresh), LastPass won't detect the inputs.
My mark up is as follows:
<form class="inputs-form" name="login" layout="column">
<div class="inputs-container">
<h2>Sign In</h2>
<div layout="column" layout-align="start center">
<div ng-if="errorMessage" class="error-text">{{errorMessage}}</div>
<div>
<md-input-container flex="100" class="signin-input-container">
<label>Email</label>
<input class="username" ng-model="email" type="text" />
</md-input-container>
</div>
<div>
<md-input-container flex="100" class="signin-input-container">
<label>Password</label>
<input class="password" ng-model="password" type="password" />
</md-input-container>
</div>
</div>
</div>
<div class="btn-container" flex="100" layout="row" layout-align="center center">
<div>
<button ng-click='login()' class='t3Btn_primary'>Sign In</button>
</div>
</div>
</form>
I've tried setting the id, name and class of the inputs to password and username like I've seen others suggest in other questions but that doesn't work in this case.
It would be great if someone knew how I could get LastPass to detect the inputs everytime the page is rendered and not just when a full browser refresh occurs.
Thanks.