Chapter quiz · Routing & State

Test what you learned.

8 questions on Routing & State. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Routing & State — Chapter Quiz

Eight questions on Vue Router, navigation guards, lazy routes, and Pinia.

0/ 9
  1. Question 1
    1

    What does createWebHistory() do?

  2. Question 2
    2

    How do you render the component for the currently matched route?

  3. Question 3
    3

    Inside a component, how do you read the current route params?

  4. Question 4
    4

    What can a beforeEach global guard return to redirect navigation?

  5. Question 5
    5

    How do you lazy-load a route component in Vue Router?

  6. Question 6
    6

    In setup-style Pinia stores, actions are just regular (or async) functions you return.

  7. Question 7
    7

    The Pinia function that creates a store is ___.

  8. Question 8
    8

    Which return values from a navigation guard prevent the current navigation?

    Select all that apply.

Pick an answer — instant feedback as you go.