Store email on session in AngularJS -
so, today make simple login page angularjs. , purpose of login want store email form session.
this login:
<label class="item item-input"> <input type="email" placeholder="email" ng-model="data.email" required> </label> <label class="item item-input"> <input type="password" placeholder="password" ng-model="data.password" required> </label> if can refer php programming language, can use $_session['email'] , store email session. read several article $sessionstorage sample example
what's best approach store session in angularjs ?
thanks :)
you can try make service based on window.sessionstorage or window.localstorage keep state information between page reloads. use in web app partially made in angularjs , page url changed in "the old way" parts of workflow. web storage supported ie8. here angular-webstorage convenience.
Comments
Post a Comment