Thanks to @ahhmarr, I was able to solve the same problem in my Angular + ui-router > environment, which I will share here for those who are interested.
In my index.html I added the following script:
<script type="text/javascript"> setTimeout(function() { $('input').attr('autocomplete', 'off'); }, 2000); </script>
Then, to capture state changes, I added the following to my root controller:
$rootScope.$on('$stateChangeStart', function() { $timeout(function () { $('input').attr('autocomplete', 'off'); }, 2000); });
Timeouts are for rendering html before using jquery.
If you find a better solution, let me know.
TrampGuy Sep 05 '16 at 15:28 2016-09-05 15:28
source share