Template driven form validation in parent component with ng-content
问题 I've been searching for the answers for past days, but I cannot find a solution. I have a base page component and all others pages extend it because lots of crud pages are involved. In my scenario, I created a modal and a ng-content selector to be fullfilled with inputs when I need it. Codes: base-page-list.component.html <section class="widget animated fadeIn" widget> <header> <h4 class="page-title" *ngIf="pageType !== PageType.TAB"> <ng-content select=".page-title"></ng-content> </h4> <div