Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hidde side menu base on some case? #530

Closed
vitaly87 opened this issue Dec 11, 2016 · 2 comments
Closed

How to hidde side menu base on some case? #530

vitaly87 opened this issue Dec 11, 2016 · 2 comments
Labels

Comments

@vitaly87
Copy link

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [* ] question about the decisions made in the repository

Hi, i want to not display menu on some case like if user not login, how can I do that ? thnx!

@mhickmann
Copy link

I just used jQuery for that.

jQuery: any;
jQuery("ba-sidebar").hide();
jQuery("ba-page-top").hide();
jQuery("ba-content-top").hide();

Then I show them again by this:

jQuery("ba-sidebar").show();
jQuery("ba-page-top").show();
jQuery("ba-content-top").show();

I hope it help you somehow.

@vinothinivenkatesan
Copy link

vinothinivenkatesan commented Dec 23, 2016

  1. How can i hide specific menus in sidebar (Not the complete sidebar) based on certain conditions?

  2. How can i load 2 different menus ( Like : test.menu.ts, demo.menu.ts ) in app.menu.ts and display it based on certain conditions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants