Question 27
Consider the following application with markup “index.html” and javascript file “app.js”, and answer the given subquestions.
index.html:
<body> <div id="app"> <router-view /> </div> <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> <scriptsrc="https://unpkg.com/vue-router@3.0.0/dist/vue-router.js"></script> <script src="app.js"></script></body>app.js:
const Booking = { template: `<div><div> Slot Booking </div><router-view /></div>`,}const Error = { template: `<div> Page not Found </div>` }const Booked = { template: `<div> Unbooked Slots </div>` }const unBooked = { template: `<div> Booked Slots </div>` }
const router = new VueRouter({ routes: [ { path: '/', component: Booking, children: [ { path: 'booked', component: Booked }, { path: 'unbooked', component: unBooked }, { path: '*', component: Error }, ], }, ],})
new Vue({ el: '#app', router,})Based on the above data, answer the given subquestions.
Page not Found
Booked Slots
Unbooked Slots
None of these