To give some more context on why I need this, I have a menu item called Masterdata. Within this page you can select from a table to view a details page on a specific user. In the overview page breadcrumb display correct MasterData | Overview. Also i have management page that can be accessed through navigation, i don't want to display management in sidebar. On this page, the breadcrumb is reset and is displaying only HOME. It should be displaying masterdata | overview | management
Please let me know if I'm missing something. masterdata-routing.module.ts
{ path: 'overview', component: CustomersComponent, canActivate: [permissionGuard], data: { requiredPolicy: 'QQ.Customers' } }, { path: 'overview/management', component: CustomersManagementComponent, canActivate: [permissionGuard], data: { requiredPolicy: 'QQ.Customers.Create || QQ.Customers.Edit || QQ.Customers' } },
After navigation should be Masterdata | Overview | Management
I have to add a new read-only input in the Personal Info form. I created an extension, and the input is displayed. I set the default value from extraProperties, but it is not displayed, although it is shown in the console log. Do you have any idea why the default value is not displayed or any tips on how to set a default value from extraProperties?" My default value is coming from ConfigStateService extraProperties.
How to change or add new details in the 'View Details' section for a user?
ABP Framework version: v8.0.4
UI Type: Angular
Database System: EF Core
Exception message and full stack trace:
Error: Unexpected value 'undefined' imported by the module 'DynamicTestModule'. Please add an @NgModule annotation. at verifySemanticsOfNgModuleDef (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/core.mjs:28929:19) at forEach (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/core.mjs:28940:9) at Array.forEach (<anonymous>) at verifySemanticsOfNgModuleDef (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/core.mjs:28938:60) at Function.get (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/core.mjs:28891:30) at TestBedCompiler.applyProviderOverridesInScope (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/testing.mjs:1110:33) at TestBedCompiler.compileTestModule (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/testing.mjs:1405:14) at TestBedCompiler.finalize (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/testing.mjs:935:14) at TestBedImpl.testModuleRef (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/testing.mjs:1932:49) at TestBedImpl.inject (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2022/testing.mjs:1842:29)
TypeError: Cannot read properties of undefined (reading 'componentInstance') at UserContext.apply (http://localhost:9876/_karma_webpack_/webpack:/src/app/rule/rule-definition-management/rule-definition-management.component.spec.ts:94:13) at _ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:368:26) at ProxyZoneSpec.onInvoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone-testing.js:273:39) at _ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:367:52) at Zone.run (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:129:43) at runInTestZone (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone-testing.js:555:34) at UserContext.<anonymous> (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone-testing.js:570:20) at <Jasmine>
Steps to reproduce the issue: That's my test configuration: `beforeEach( waitForAsync(() => { TestBed.configureTestingModule({ declarations: [RuleDefinitionManagementComponent], imports: [ CoreTestingModule.withConfig(), ThemeSharedTestingModule.withConfig(), RuleModule, NgxValidateCoreModule, VALIDATION_BLUEPRINTS ], providers: [] }).compileComponents(); }) );
beforeEach(() => { fixture = TestBed.createComponent(RuleDefinitionManagementComponent); fixture.detectChanges(); });
it("should be initiated", () => { // expect(fixture.componentInstance.ruleDefinitionToDisplay).toEqual(ruleDefinitionMock); expect(fixture.componentInstance).toBeTruthy(); });`
RuleModule includes @NgModule for Rules.
That are my injections in TS class: private ruleService = inject(RuleService); private ruleDataModelService = inject(RuleDataModelService); private ruleDefinitionService = inject(RuleDefinitionService); private ruleUtils = inject(RuleUtils); private generalUtils = inject(GeneralUtils); private formBuilder = inject(FormBuilder); private toast = inject(ToasterService); private router = inject(Router); private localizationService = inject(LocalizationService); private confirmation = inject(ConfirmationService); private constants = inject(Constants); private location = inject(Location);