0
Guys I would like to implement a menu "my account" in my project, this menu should show the user data as name, email etc, I am using jwt and the logged in user data can be obtained in Localstorage in this format:{"id":"598a8bc8b9dd44250819a7c4","name":"bruno","username":"kinge880","email":"[email protected]"}
I would just like to know how to access this array and get the name inside it I’m using nodejs, angular 4 and mongodb
localStorage.getItem("name")?
– user83428
In localStorage I have only my user, then using getItem("user") I get that array up there, what I want to know is how to access the array and get a value inside it, in case, name
– Bruno Maia