How to display user data in side menu?


i have 2 questions
1 - i’m getting Data from storage and i want to display the user name and image where i can put the code ?
i put it in app component and its some time disappear
the attached image
2 - how i can display images stored in storage?



you have to fetch data from localstorage after deviceready()=>{} in app.component.ts and set to local var.and then you can use that local var to app.html file


yes i have done that and it sometimes hides the username as i mention in the screen shot


it happens because device.ready event takes time for completion and your view already render so i suggest set app.component’s local variable twice before and after device.ready()