Remember Password with AngularJS and ng-submit

后端 未结 5 1063
说谎
说谎 2020-12-16 11:46

How do I get the browser to ask the user to remember the password when using ng-submit in an AngularJS single page application.

My Form:

5条回答
  •  执念已碎
    2020-12-16 12:13

    I didn't have to do anything special. But I noticed that while MS Edge and Firefox worked well and offered to remember credentials Chrome didn't.

    So simply by providing name attribute to the login form and to username and password it seemed to work fine in Chrome. Autocomplete is on as well. Example:

    
            

    PS: I'm using Chrome Version 45.0.2454.93 m

提交回复
热议问题