Question 11
Consider the following HTML, which includes Vue 2 and Vue Router 3 CDN links.
<body> <div id="app"></div> <script> const Home = { template: `<h1>Home</h1>` } const NewestComments = { template: `<h3>Newest Comments</h3>` } const TopComments = { template: `<h3>Top Comments</h3>` } const SearchResults = { template: `<h3>Search Results</h3>` } const TopBar = { template: `<h3>Topbar</h3>` } const NavBar = { template: `<h3>Navbar</h3>` } const VideoDetail = { template: `<div>Video Details <router-view /> </div>` }
const routes = [ { path: '/', component: Home }, { path: '/video/:id', component: VideoDetail, props: true, children: [ { path: 'comments/top', component: TopComments }, { path: 'comments/newest', component: NewestComments } ] }, { path: '/search/:query', component: SearchResults, props: true } ];
new Vue({ el: '#app', template: `<div> <TopBar /> <NavBar /> <router-view /> </div>`, router: new VueRouter({ routes }), components: { TopBar, NavBar } }) </script></body>Given this router setup, which of the following will happen when a user navigates to localhost:5000/#/video/5/comments/newest, assuming the webpage is hosted on localhost:5000?