Quiz: Routing and URLs
Please enjoy this self-check quiz to help you identify key concepts, points, and techniques discussed in this section.
What does "routing" refer to?
What modes can be used to manage URLs in a Vue.js app?
Where are the route definitions found in a standard Vue.js project created with the Vue CLI webpack template?
/src/routes.js
/src/router/index.js
/src/App.vue
/router.js
/src/router/index.js
file contains the route definitions.Which of the following properties of a route can be used with or
router.push()
?
name
children
component
path
path
and name
properties can be used to create a link with
or router.push()
.In a module import statement using the default webpack configuration, what does the @
symbol stand for?
email
repository
src/
components
@
symbol stands for src/
in the path to a file.Nested URLs are defined using which property of the route object?
nested
babies
children
siblings
children
property defines views nested in a parent view.Which parameters are defined in the following route path: '/posts/:slug/page/:pageNum'
slug
page
pageNum
posts
slug
and pageNum
.What do we need to do to add a new route to our application?
What are the advantages of using named routes?
Visit Quiz Online
The quiz on this page has been removed from your PDF or ebook format. You may take the quiz by visiting this book online.