Posts

Showing posts from December 29, 2018

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);

how to setItem localstorage username in Angular

SetItem in local Storage in Angular localstorage.setItem('username', this.model.username);

Angular

Clock update every second in Angular Component.html <p>{{mydate | amDateFormat: 'ddd Do HH:mm:ss'}}<p> .ts myDate:Date; UtcTime():void{ setInterval(function(){ this.myDate=new Date(); },1000); }

Popular posts from this blog

String Program in C#

CSV using XmlNode

Controller_Model. cs