title: content script to auto fill user password form created by Angular
body: <p>I have created a content script extension to auto fill user and password fields on webpage. It works OK in normal form like below -</p>
  
  <pre><code>&lt;input name="userId" class="form-field" id="userId" placeholder="Username" autocomplete="off" tabindex="1" type="text"&gt;
  &lt;input name="password" class="form-field" id="password" placeholder="Password" autocomplete="off" tabindex="2" type="password"&gt;
  &lt;input name="signIn" class="btnBlue" id="signIn" value="Sign In" tabindex="4" onclick="checkIECompat()" type="button"&gt;
  </code></pre>
  
  <p>However, when it comes to Angular-generated form, no matter how hard I try to play with those ng-xxxxxx classes, it does not work.</p>
  
  <pre><code>&lt;input type="text" class="form-control text-center modal-header ng-valid-maxlength ng-touched ng-dirty ng-valid-parse ng-invalid ng-invalid-required" name="idCard" placeholder="User Name" maxlength="20" autocomplete="off" ng-model="request.userName" required=""&gt;
  &lt;input type="password" class="form-control text-center ng-dirty ng-valid-parse ng-touched ng-invalid ng-invalid-required" name="password" placeholder="Password" aria-describedby="" autocomplete="off" ng-model="request.password" style="margin-top:15px" required=""&gt;
  &lt;button type="submit" class="btn btn-blue btn_login" value="Log In" ng-click=" login('/payment')" ng-disabled="loginForm.$invalid" disabled="disabled"&gt;เข้าสู่ระบบ &lt;span class="glyphicon glyphicon-log-in" style="font-size:14px" aria-hidden="true"&gt;&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  
  <p>Above is the code when page is first loaded. I manually key in the form and inspect the code when all validity have been checked and the submit button is enabled. Then, I use my program to change those classes and other details to make them identical (except its order). I even force enable the button by removing <code>disabled</code> attribute but it does not help. The button can be clicked but nothing happens.</p>
  
  <p>My question is "is it possible to achieve this?". Are there any limitations concerning Angular that prevent the content script running successfully? Or it is just the coding issue that I have not been able to make it work.</p>
  
  <p>One more problem is I do not own Angular code. It belongs to a website that I wan to use my extension with.</p>