How to get inner html of Angular6 component and add it to component template?
问题 I want to be able to pass components and other html into other components in this way: <app-container-component> <h3>All these items should be displayed in parent component</h3> <app-another-component></app-another-component> </app-container-component> How can I read inner items of container-component and render them inside component template? 回答1: You can use the concept of "@Input","@Output-EventEmitter".By using these properties you can pass data from parent component to child component