angular - Different Sidemenu in ionic 2 app -


i have different side menus in ionic 2 app based on user login. when user logs in customer , want show side-menu customer functionalities. when user logs in admin, show different side-menu.

i using ionic 2 sidemenu template

any appreciated.

you use *ngif on element inside sidebar display based on if user logged in admin.

example:

<div class="side-bar-admin" *ngif="admin'"></div>


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -