angular – How to pass an input component of another component?

I use the modal ngx-bootstraps component and I want to dynamically transmit it to the components to be displayed. I do not know how to do that.

I use the following example, components as content:
https://ng-bootstrap.github.io/#/components/modal/examples

I can not forward it with @Input () because it is not an instance of a variable.

import {Component, OnInit} from '@ angular / core & # 39 ;;
import {NgbModal} from @ ng-bootstrap / ng-bootstrap & # 39 ;;
import {ActualContentComponent} from "path / path / path";

// TODO: Fix hard important of component
@Component({
selector: 'srd-modal',
templateUrl: & # 39; ./ srd-modal.component.html & # 39;
styleUrls: ['./srd-modal.component.css']
})
The SharedModalComponent export class implements OnInit {

constructor (private modalService: NgbModal) {}

open () {
const modalRef = this.modalService.open (ActualContentComponent);
modalRef.componentInstance.name = & # 39;
}

ngOnInit () {
}

}

The above example works, but I have a difficult reference to "ActualContentComponent". I would rather avoid a giant switch to see which component actually open (by giving it the name of the component).