Browse Source

add @abp/ng.account to module template

pull/8064/head
mehmet-erim 6 years ago
parent
commit
1d9e6f20ba
  1. 1
      templates/module/angular/package.json
  2. 4
      templates/module/angular/projects/dev-app/src/app/app-routing.module.ts
  3. 6
      templates/module/angular/projects/dev-app/src/app/app.module.ts

1
templates/module/angular/package.json

@ -15,6 +15,7 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@abp/ng.account": "~4.2.2",
"@abp/ng.components": "~4.2.2", "@abp/ng.components": "~4.2.2",
"@abp/ng.core": "~4.2.2", "@abp/ng.core": "~4.2.2",
"@abp/ng.identity": "~4.2.2", "@abp/ng.identity": "~4.2.2",

4
templates/module/angular/projects/dev-app/src/app/app-routing.module.ts

@ -7,6 +7,10 @@ const routes: Routes = [
pathMatch: 'full', pathMatch: 'full',
loadChildren: () => import('./home/home.module').then(m => m.HomeModule), loadChildren: () => import('./home/home.module').then(m => m.HomeModule),
}, },
{
path: 'account',
loadChildren: () => import('@abp/ng.account').then(m => m.AccountModule.forLazy()),
},
{ {
path: 'identity', path: 'identity',
loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()), loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()),

6
templates/module/angular/projects/dev-app/src/app/app.module.ts

@ -1,3 +1,4 @@
import { AccountConfigModule } from '@abp/ng.account/config';
import { CoreModule } from '@abp/ng.core'; import { CoreModule } from '@abp/ng.core';
import { registerLocale } from '@abp/ng.core/locale'; import { registerLocale } from '@abp/ng.core/locale';
import { IdentityConfigModule } from '@abp/ng.identity/config'; import { IdentityConfigModule } from '@abp/ng.identity/config';
@ -27,12 +28,13 @@ import { ThemeBasicModule } from '@abp/ng.theme.basic';
skipGetAppConfiguration: false, skipGetAppConfiguration: false,
}), }),
ThemeSharedModule.forRoot(), ThemeSharedModule.forRoot(),
AccountConfigModule.forRoot(),
IdentityConfigModule.forRoot(), IdentityConfigModule.forRoot(),
MyProjectNameConfigModule.forRoot(),
TenantManagementConfigModule.forRoot(), TenantManagementConfigModule.forRoot(),
SettingManagementConfigModule.forRoot(), SettingManagementConfigModule.forRoot(),
NgxsModule.forRoot(), MyProjectNameConfigModule.forRoot(),
ThemeBasicModule.forRoot(), ThemeBasicModule.forRoot(),
NgxsModule.forRoot(),
], ],
providers: [APP_ROUTE_PROVIDER], providers: [APP_ROUTE_PROVIDER],
declarations: [AppComponent], declarations: [AppComponent],

Loading…
Cancel
Save