wait for ModalRef.content to appear pass variable to modal component ngx code example Example: bs modal service close this._bsModalRef.hide();