Question 16
Consider the following html.
<div id="app"> <parent-component :title="parentTitle"> <template slot="header"> <h2>{{ headerTitle }}</h2> </template> </parent-component></div>
<script>Vue.component('parent-component', { props: ['title'], template: ` <div> <h1>{{ title }}</h1> <slot name="header"></slot> <p>Main Content</p> </div> `});
new Vue({ el: '#app', data: { parentTitle: 'Parent Component Title', headerTitle: 'Header Content' }});</script>Assuming Vue CDN has been added to the HTML and the HTML format is correct. What would be the output on the screen?