Comments (2)
Hi @tienthanh1993. It is not possible out of the box at the moment, but with a little work you can easily configure this:
- As stated in the documents, menu items are configured in https://github.com/akveo/ng2-admin/blob/master/src/app/app.menu.ts.
- You can add some additional parameter, say
role
into item's object specifying for which role this menu item is available:
{
title: 'Dashboard',
component: 'Dashboard',
icon: 'ion-android-home',
selected: false,
expanded: false,
order: 0,
role: 'admin' // like this
},
- Then in the https://github.com/akveo/ng2-admin/blob/master/src/app/theme/components/baSidebar/baSidebar.service.ts#L10 you can just filter menu items by current user role.
That's it, let me know if you have any questions.
from ngx-admin.
@tienthanh1993 I'm closing the issue now, hopefully, you resolved the issue, if any questions - drop us a line. Thanks!
from ngx-admin.
Related Issues (20)
- Tests are hanging indefinitely
- Unable to scroll for calendar where datepicker is towards end of page HOT 2
- Template ionic Angular
- how to add new links or items in sidebar HOT 1
- - 🔫 I ...
- updated the ngx-admin to the latest version and added nx workspace to it
- where is the cash icon? HOT 1
- Repository state and engagement with the community HOT 2
- while installing i am getting an error. please help asap HOT 4
- How to implement table with row detail?
- Upgrade to Angular 16
- Upgrade to Angular 16 HOT 4
- NbOAuth2AuthStrategy show errors from login response
- 01
- my starter-kit [is not an issue]
- Failing to build HOT 1
- Failing to build HOT 1
- 如何食用ngx-admin
- How to change the left-side menu default language? HOT 1
- I encountered an issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-admin.