What's the best way to persist information on session with AngularJS? -
i have page show name of user after login, but, if press f5 page reloads , name not appear. how can persist information in session?
session storage first choice, take @ ngstorage module. haven't tested , doesn't seem used it's starting point if want write own implementation.
though unless have reason go against cookies consider using inbuilt $cookies service.
Comments
Post a Comment