I\'m trying to use ngx-bootstrap-modal to pass data from a modal service into a modal component. The examples show this:
this.modalService.show(ModalContentCompo
set @Input() parameter in the popup component to access the property in initialState
for eg:
in Parent Component
const initialState = { message: 'popup message', title:'popup title'};
let bsModalRef = this.modalService.show(ConfirmPopupComponent, Object.assign({}, this.modalConfig, { class: 'modal-sm', initialState })
in confirmPopupComponent
@Input() message: string = 'Message here...'; // we can set the default value also
@Input() title: string = 'default title';