initialState does not work anymore after update to ngx-bootrap 6.1.0

315 Views Asked by At

We used the initialState from ModalOptions like this:

var modalConfig: ModalOptions = {
  initialState: {
    companyIdInput: this.companyId
  }
};
this.modalRef = this.modalService.show(AddEditCompanyModalComponent, modalConfig);

companyIdInput/this.companyId is a string.

Now, this does not work anymore. We have the following error:

Type '{ companyIdInput: string; }' is not assignable to type 'Partial'.

How we have to pass the values?

Thanks very much.

0

There are 0 best solutions below