You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome if we could pass some custom content to the ModalComponent in the following way: modalService.show(ModalComponent, customContent) method.
The text was updated successfully, but these errors were encountered:
var modalRef = this.bsModalService.show(ModalComponent);
var modalComponent = modalRef.content as ModalComponent;
modalComponent.title = "Title";
modalComponent.updateView();
In your component inject private cd: ChangeDetectorRef and add the updateView method:
updateView() {
this.cd.detectChanges();
}
But it would be nicer that the show method BsModalService provided a way to pass data directly.
A discussion at ng-bootstrap about this has already taken place: ng-bootstrap/ng-bootstrap#861
It would be awesome if we could pass some custom content to the ModalComponent in the following way:
modalService.show(ModalComponent, customContent)
method.The text was updated successfully, but these errors were encountered: