Skip to content

Commit cd70f4b

Browse files
committed
ngx-bootstrap modal modul import fixed
1 parent 0ddb7b4 commit cd70f4b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

angular/src/account/account.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FormsModule } from '@angular/forms';
44
import { HttpClientJsonpModule } from '@angular/common/http';
55
import { HttpClientModule } from '@angular/common/http';
66

7-
import { ModalModule } from 'ngx-bootstrap';
7+
import { ModalModule } from 'ngx-bootstrap/modal';
88

99
import { AbpModule } from '@abp/abp.module';
1010

@@ -35,7 +35,7 @@ import { TenantChangeDialogComponent } from './tenant/tenant-change-dialog.compo
3535
SharedModule,
3636
ServiceProxyModule,
3737
AccountRoutingModule,
38-
ModalModule.forRoot()
38+
ModalModule.forChild()
3939
],
4040
declarations: [
4141
AccountComponent,

angular/src/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
44
import { HttpClientJsonpModule } from '@angular/common/http';
55
import { HttpClientModule } from '@angular/common/http';
66

7-
import { ModalModule } from 'ngx-bootstrap';
7+
import { ModalModule } from 'ngx-bootstrap/modal';
88
import { NgxPaginationModule } from 'ngx-pagination';
99

1010
import { AppRoutingModule } from './app-routing.module';
@@ -70,7 +70,7 @@ import { ResetPasswordDialogComponent } from './users/reset-password/reset-passw
7070
ReactiveFormsModule,
7171
HttpClientModule,
7272
HttpClientJsonpModule,
73-
ModalModule.forRoot(),
73+
ModalModule.forChild(),
7474
AbpModule,
7575
AppRoutingModule,
7676
ServiceProxyModule,

angular/src/root.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { API_BASE_URL } from '@shared/service-proxies/service-proxies';
1717

1818
import { RootComponent } from './root.component';
1919
import { AppPreBootstrap } from './AppPreBootstrap';
20-
import { ModalModule } from 'ngx-bootstrap';
20+
import { ModalModule } from 'ngx-bootstrap/modal';
2121
import { HttpClientModule } from '@angular/common/http';
2222

2323
import { GestureConfig } from '@angular/material';

0 commit comments

Comments
 (0)