Vue · Middle · Question 37 of 75

How are nested routes rendered?

{
  path: "/settings",
  component: SettingsLayout,
  children: [
    { path: "profile", component: Profile },
    { path: "security", component: Security },
  ],
}

Explanation

Child paths without a leading / are relative to the parent. A child with an empty path '' renders at /settings itself.

Further reading

Problem with a question

Vue · Middle · question 37

Test yourself

Take the Vue · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz