Hi, I'm trying to override DashboardViewConfigurationService with custom class without success. I've already done this kind of override upon AppNavigationService with succes. But for DashboardViewConfigurationService nothing happen!
Waht I've alread done is:
• createad custom AwcDashboardViewConfigurationService
inside my own library
• in a forRoot()
static method of my module's library, I also specified: { provide: DashboardViewConfigurationService, useClass: AwcDashboardViewConfigurationService}
(same things already done in an AppNavigationService
with success!)
The only way to retrieve instance of AwcDashboardViewConfigurationService
from CustomizableDashboardComponent
DI is to remove DashboardViewConfigurationService
from AppCommon
module's providers.
Any suggestion?
1 Answer(s)
-
0
Hi,
I think it is becasue of this line https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/shared/common/customizable-dashboard/dashboard-view-configuration.service.ts#L19. Does it work if you remove this line ?
Thanks,