Question 2
Consider the Vue application with markup index.html and JavaScript app.js
index.html
<body> <div id="app"></div></body>app.js
const NavBar = { template: `<ul> <li> Home </li> <slot><li>Bowling Average</li></slot> </ul>`,}
const Batsman = { template: `<NavBar><li>Batting Average</li><li>StrikeRate</li></NavBar>`, components: { NavBar, },}
new Vue({ el: '#app', template: `<Batsman />`, components: { Batsman, },})Suppose the application is running on “http://localhost:8080” . What will be rendered by the browser?
● Home
● Bowling Average● Home
● Bowling Average
● Batting Average● Home
● Batting Average
● Strike Rate● Bowling Average
● Batting Average