Do aux routes work for the root component only?

后端 未结 2 1357
旧时难觅i
旧时难觅i 2021-01-13 00:41

I\'m having trouble setting up auxiliary routes in child components, for some reason only those auxiliary routes work that start at the root component.

Here\'s my ro

2条回答
  •  情书的邮戳
    2021-01-13 01:17

    Try using http://localhost:3000/shell/(department/1//aux2:test3)

    URL has format (primaryroute//secondaryroute) parentheses tells it may have sibling routes and // is sibling route separator.

    Aux and primary outlets are considered sibling on same parent

提交回复
热议问题