mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-26 09:54:11 +01:00
fix(build): remove unused libs, make modals work inside nga-layout
This commit is contained in:
parent
f217e1f97a
commit
9e62e5d164
4 changed files with 21 additions and 32 deletions
|
|
@ -13,12 +13,12 @@ export class ModalsComponent {
|
|||
constructor(private modalService: NgbModal) { }
|
||||
|
||||
showLargeModal() {
|
||||
const activeModal = this.modalService.open(ModalComponent, { size: 'lg' });
|
||||
const activeModal = this.modalService.open(ModalComponent, { size: 'lg', container: 'nga-layout' });
|
||||
|
||||
activeModal.componentInstance.modalHeader = 'Large Modal';
|
||||
}
|
||||
showSmallModal() {
|
||||
const activeModal = this.modalService.open(ModalComponent, { size: 'sm' });
|
||||
const activeModal = this.modalService.open(ModalComponent, { size: 'sm', container: 'nga-layout' });
|
||||
|
||||
activeModal.componentInstance.modalHeader = 'Small Modal';
|
||||
}
|
||||
|
|
@ -27,6 +27,7 @@ export class ModalsComponent {
|
|||
const activeModal = this.modalService.open(ModalComponent, {
|
||||
size: 'sm',
|
||||
backdrop: 'static',
|
||||
container: 'nga-layout',
|
||||
});
|
||||
|
||||
activeModal.componentInstance.modalHeader = 'Static modal';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue