How to display username after login in Angular

The following code are get localstorage username name

currentuser:any;

this.currentuser=(localstorage.getItem('username'));
Console.log(this.currentuser);

Comments

Popular posts from this blog

String Program in C#

CSV using XmlNode

Controller_Model. cs