mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-17 23:15:28 +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';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
|
|||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { NgaCardModule } from '@nga/theme';
|
||||
import { NgaCardModule, NgaThemeModule } from '@nga/theme';
|
||||
|
||||
@NgModule({
|
||||
exports: [
|
||||
|
|
@ -11,6 +11,7 @@ import { NgaCardModule } from '@nga/theme';
|
|||
ReactiveFormsModule,
|
||||
RouterModule,
|
||||
NgaCardModule,
|
||||
NgaThemeModule,
|
||||
],
|
||||
})
|
||||
export class SharedModule { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue