Question 22
Consider the following Vue application with markup “index.html” and javascript file “app.js”.
index.html:
<div id = "app"> <my-comp> <template #header> This is header content </template>
<template #footer> This is footer content </template>
<p> This is some content </p> </my-comp></div><script src = "app.js"> </script>app.js:
Vue.component("myComp", { template : `<div> <p> <slot></slot> </p> <p> <slot name="header"></slot> </p> </div> `,})
const app = new Vue({ el : "#app",})Suppose you open the “index.html” file in a browser. What will be rendered by the browser?