Open Closed

Angular: Hide item administration on Menu #395


User avatar
0
edelivery created
  • **ABP Framework version: 3.0.5
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

I want to hide administration on menu. I'm using route.provider Please help me how to do it

ABP Framework version: 3.0.5 User Interface type: Angular

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    Mehmet created

    Hi @edelivery

    You can patch the "Administration" route as shown below:

    import { RoutesService } from '@abp/ng.core';
    import { Component } from '@angular/core';
    import { eThemeSharedRouteNames } from '@abp/ng.theme.shared';
    
    @Component(/* component metadata */)
    export class AppComponent {
      constructor(private routes: RoutesService) {
        this.routes.patch(eThemeSharedRouteNames.Administration, { invisible: true });
      }
    }
    

    See the Modifying the Menu document for more information.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    edelivery created

    Thanks Mehmet

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    aeffegroup created

    Hi, in Angular ABP.io version 4.2, how can I hide or remove the administration menu based on roles? For example, i want display the "administraton" menù only if i'm an "admin"

    i tried something like this but it disables for all users

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Mehmet created

    Hi,

    You can manage the permissions:

    Can't you reach your goal using this?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 05, 2026, 11:32
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.