AngularJS data lost on refreshing the page
<p>Each time I refresh my page, the data in AngularJS variables is lost. How to retain them without using cookies? Can anyone help me with an approach? Its different from the <a href="https://stackoverflow.com/questions/26118851/retain-angular-variables-after-page-refresh">previous question</a> because I am interested in a solution that does not use cookies.</p>