First time login when i try get local storage value on that time local storage value getting null but send time login and try to get local storage value its working file working fine
I’m set the value into the local storage like this
this.storage.set('loggedIn', this.loggedIn);
this.storage.set('username',this.user_name);
this.storage.set('userid', this.userid);
this.storage.set('license', this.license);
this.storage.set('userType', this.userType);
And get like this
ionViewDidLoad() {
this.storage.get('license').then(lic => {
alert(this.license =lic)
});
this.storage.get('username').then(user => {
alert(this.gaurdname =user);
});
this.storage.get('userid').then(id => {
alert(this.user_id =id)
});
}
Please any one help me out
Thanks