It will become hidden in your post, but will still be visible via the comment's permalink. This creates the new component and adds it to the module declaration. Staging Ground Beta 1 Recap, and Reviewers needed for Beta 2, Difficulty to open component from another module, Pass data into ngbmodal instance in angular 2/4 from the parent component, ng-bootstrap modal opens component, but places html-selector, Customizing a ng-boostrap modal with component as content. First of all you have to add a ViewChild of the template and one change in the open-method to your HelloHomeModalComponent: Furthermore you have to add a reference in your home.component.html: Now we have to add this reference to your HomeComponent: For myself I use the Primeng Dialog module component. There is no 'ModalContentComponent', it should read 'ChildModalComponent'. Has 90% of ice around Antarctica disappeared in less than a decade? sure, make sure to accept or up vote if it resolve your problem. Don't change the name. Note: If you are using another component as modal. I got some inspiration from here: https://stackblitz.com/edit/angular-uwtgs6. Angular 14 Draggable Grid Blocks using angular-gridster2 Tutorial, Angular 13 Dynamic FormsGroups using Reactive Form Tutorial, Phone (Mobile) Validation Using ReGex in React Js StackBlitz Example, Angular Material 13 Server Side Table Pagination Example, Angular 13 Material Dialog Example Positions, Fullscreen, Events Tutorial, React JS Sticky Fixed Header using On Scroll Event Handler, Vue Bootstrap Date & Time Picker Calender Component Example.