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>
Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.
Top comments (1)
No one should ever do this. this is so counter productive and a big waste of time.