When ng calls the Vue component, children can be either the Vue component or the ng component (projection)
<vue-outlet[component]="xxxx"#child></vue-outlet><!-- named slot --><vue-slot-group[name]="'xxx'"><ng-template#childlet-input1="input1"></ng-template></vue-slot-group>
example
ant-design-vue
<vue-outlet[component]="Tree"[root]="true"[(model)]="bindModel"[props]="props"><vue-slot-group[name]="'title'"><ng-template#childlet-key="key"let-title="title"> @if (key === '0-0-1-0') { <spanstyle="color: #1890ff">{{ title }}</span> }@else{ {{ title }} } </ng-template></vue-slot-group></vue-outlet>
Top comments (1)
No one should ever do this. this is so counter productive and a big waste of time.