Open trsh opened 5 years ago
Something like this?
domc.component("input-title", {
create: scope => {
return {};
},
update: scope => {
return {
html: scope.showControl() ? `<div class="input-title">{{ input.name }}</div>` : ``
};
},
template: `{{ html }}`
});
Not like that. The library missing v-if directive for now and doesn't support node replacing, allowing only insert it at first render.
@Freak613 should be high priority :)
Any news on this?
Not so. I'll update ticket once implemented.
I've just proposed a sketch of a possible implementation of a v-if
directive as a separate issue which might be of help...
Could not find any examples.
This is just variable change.