5

So I have a generic problem with chrom autofill scripts and my guess is that for all autofill script this would be a problem.

When input fields get set with autofills, how do I register them with the ng-model value. e.g. (html, ui, angular javascript)

username: <input ng-model="username"/>,   username: [      ],   $scope.username = ""

if i type Blanka, I get

username: <input ng-model="username" value="Blanka"/>,   username: [Blanka],   $scope.username = "Blanka"

but with chrom autofill it seems to be doing

username: <input ng-model="username"/>,   username: [Blanka],   $scope.username = ""

how do i inject values into ng-model whenever there's autofilled data.

user2167582
  • 5,986
  • 13
  • 64
  • 121

0 Answers0