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.