You can import ThemeSharedModule like below. Will use YourErrorComponent for describe in** forWhichErrors** array.
ThemeSharedModule.forRoot({
httpErrorConfig: {
errorScreen: {
component: YourErrorComponent,
forWhichErrors: [401, 403, 404, 500],
hideCloseIcon: true,
},
},
RoutesService can be used to patch the routes.
import { RoutesService } from '@abp/ng.core';
import { APP_INITIALIZER } from '@angular/core';
export const APP_ROUTE_PROVIDER = [
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
];
function configureRoutes(routes: RoutesService) {
return () => {
routes.patch('AbpIdentity::Menu:IdentityManagement', {
iconClass: 'fas fa-chart-line',
});
};
}
This document has more information.
If you want to add component to navbar, you can replace Navbar and NavbarMobile.
constructor(replaceableComponents: ReplaceableComponentsService) { replaceableComponents.add({ component: YourComponent, key: eThemeLeptonComponents.Navbar, }); replaceableComponents.add({ component: YourMobileComponent, key: eThemeLeptonComponents.NavbarMobile, });}
and also you can import like below.
import { ReplaceableComponentsService } from '@abp/ng.core';
import { eThemeLeptonComponents } from '@volo/abp.ng.theme.lepton';
Can you try it on cli ?
yarn add @volo/abp.ng.account.core
Can you try it on cli ?
yarn add @volo/abp.ng.account.core
I checked your AccountLayoutModule import but it is false. You must import it from '@volosoft/abp.ng.theme.lepton-x/account'
but you imported from '@abp/ng.theme.lepton-x/account'
.Please add below import instead of your AccountLayoutModule import.
import { AccountLayoutModule } from '@volosoft/abp.ng.theme.lepton-x/account';
Please use your package manager instead of yarn. Like npm etc.
you can use like below.
npm i @abp/ng.theme.lepton-x
When you add @abp/ng.theme.lepton-x/account to the node_modules, your problem is going to solved.
Can you try it on cli ?
yarn add @abp/ng.theme.lepton-x/account
Can you check your import ? Import must be like below.
import { AccountLayoutModule } from '@volosoft/abp.ng.theme.lepton-x/account';
And also, is your theme is lepton-x ? Can you let me know which theme you are using?