Sunday 21 May 2017

Angular4 store NodeJS data

I just got started working with the Angular4 and NodeJS.

I have a signin post request that sends data (e.g. user role, first name, last name) to my angular app and stores it in a variable. However, when I reload the page the variables are empty again.

So I was wondering, is there a way of avoiding this (e.g. fetching the necessary data on every page reload?). Or is there a better practice to store the data that you receive from a post request in angular? Localstorage and sessionstorage dont seem really save to me.

I tried to google this for a couple of hours, but I couldnt find a suitable answer.

Best regards,

AE



via A E

No comments:

Post a Comment