Hello
 
For developing remember me, we should have unique field for use 
 
For example : token or any unique value
 
So that we can make use of them througout our application 
 
You can try below snippets for the same :
 
https://stackoverflow.com/questions/49508979/angular-4-remember-me-function
 
https://dzone.com/articles/how-build-and-how-not-build
 
https://www.oodlestechnologies.com/blogs/How-to-create-remember-me-using-angular
 
Thanks