It’s possible to use same part of template in many places without duplicate code? I know that in JSX I can put the part of template into function and render that function in many places, but it’s possible in vue template ?
for example
<template>
<element-to-use>
<h1>{{ title }}</h1>
<p>{{ description }}</p>
</element-to-use>
<tooltip>
<template #content>
<element-to-use></element-to-use>
</template>
<div>
<img src="/img.png" />
<element-to-use></element-to-use>
</div>
</tooltip>
</template>
element-to-use?<ng-template #name>...</ng-template>and then you can place it like this<ng-container *ngTemplateOutlet="name" />. Too bad Vue doesnt have it.