fix(build): remove unused libs, make modals work inside nga-layout

This commit is contained in:
Dmitry Nehaychik 2017-06-14 20:13:02 +03:00
parent f217e1f97a
commit 9e62e5d164
4 changed files with 21 additions and 32 deletions

View file

@ -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';

View file

@ -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 { }