Problem: I created an input field with type text, but when page loads it is auto filled with username saved (saved for this website login page)in browsers form data. i want to show it clean when page load.
<input type="text" class="form-control search-field" placeholder="Search Item"
ng-model="vm.applyCategFoodSearch" autocomplete="off"
name="txtFieldForSearchItems">
i am unable to find solution, autocomplete='off' was suggested by many other sources, but issue not fixed. if it can be handled using html,jquery,javascript,angularjs. it will be good. I also reset the values in controller
vm.applyCategFoodSearch='';
timeout also tried but not working
$timeout( function(){
vm.applyCategFoodSearch='';
}, 5000 );
if i set time out to 10seconds, it will work, but its not the solution. i am sending ajax call for food categories,when it returns, this timeout code will run with 10second delay.it will work. other than 10second delay.it will not work.