Hello,
I want to know how can i show or hide a component according to the logged in user's role or another property?
Hello,
I want to know how can i show or hide a component according to the logged in user's role or another property?
Hi taucher,
let me try this.
create localstorage for ex. the name of localstorage is UserType
if(localStorage.getItem('UserType')=="ADMIN"){
Appery("SampleToShow").show();
}else{
Appery("SampleToShow").hide();
}
hehe i hope this could help.
Goodluck,
My First Topic - Fastest Response - Solved.
Thank you so much,