\n```","suggestedAnswer":[{"@type":"Answer","text":"```html\n
\n
\n```"},{"@type":"Answer","text":"```html\nRendering DOM Vuejs
\n \nUser doesn't see directly the DOM
\n\n
\n```"},{"@type":"Answer","text":"```html\nRendering DOM Vuejs
\n \n\n
\n```"},{"@type":"Answer","text":"```html\nRendering DOM Vuejs
\n \nUser doesn't see directly the DOM
\n\n
\n```"}],"acceptedAnswer":[{"@type":"Answer","text":"```html\nRendering DOM Vuejs
\n \n\n
\n```"}]}}Rendering DOM Vuejs
\n \nUser doesn't see directly the DOM
\nHard
What this component will generate in the DOM ?
<template>
<div>
<h1 v-if="isTitleShown">
Rendering DOM Vuejs
</h1>
<button>
<template v-if="isButtonActivated">
Activate
</template>
<template v-else>
Desactive
</template>
</button>
<p v-show="isNoticeDisplayed">
User doesn't see directly the DOM
</p>
</div>
</template>
<script>
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
return {
isTitleShown: ref(true),
isButtonActivated: ref(false),
isNoticeDisplayed: ref(false)
};
}
});
</script>
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
2
Display the content of a variable in VueJS1
What is the name of the event that is fired when the renderer is done rendering the component?2
What is the type of the computed property `computedProperty` in the following code? 2
Vue 3 provides default components to override all classic form components with the goal of performance improvement, a pre-generated basic UI, and pre-established data binding.4
How to use v-do in VueJS2
Create a component dynamically in Vue 31
What style(s) of API do we have at our disposal in VueJS?