We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FooBar.vue
<template> <div> <img v-if="2 > 1"/> <p>I am a paragraph.</p> </div> </template>
FooBar.mod.ts
import type { TemplateMod } from '@creativestyle/kombinator' export default function (withComponent: TemplateMod) { const t = withComponent('FooBar') const elementCode = t.templateModificator .findByTag('img') .getElementCode() console.log('img elementCode :', elementCode) t.templateModificator .findByTag('img') .insertAfter('<h1>bajojajo</h1>') t.saveModifiedTemplate() }
img elementCode : <img v-if="2 > 1"/>
<template> <div> <img v-if="2 > 1"/><h1>bajojajo</h1> <p>I am a paragraph.</p> </div> </template><!-- Kombinator: FooBar.mod.ts:16:5 -->
img elementCode : <img v-if="2 > 1"/> 15:06:40 <p>I am a paragraph.</p>
<template> <div> <img v-if="2 > 1"/> <p>I am a paragraph.</p><h1>bajojajo</h1> </div> </template><!-- Kombinator: FooBar.mod.ts:16:5 -->
<Badge v-if="2 > 1"/> <img v-if="2 > 1"/>
<h6 v-if="2 > 1">test</h6>
… then the kombinator would handle it properly
v-if
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce:
FooBar.vue
file:FooBar.vue
withFooBar.mod.ts
:Expected Result:
FooBar.vue
with below content:Actual Result:
FooBar.vue
with below content:Technical hints:
… then the kombinator would handle it properly
v-if
directivesThe text was updated successfully, but these errors were encountered: