Skip to content

Inherited Route Data #10

Closed
Closed
@burntblark

Description

@burntblark

When a route inherits the data dictionary from its parent, the breadcrumb is repeated. I will demonstrate:

{
    path: '',
    data: {
      title: 'Account'
    },
    children: [{
      path: 'expenses',
      children: [{
        path: '',
        data: {
          title: 'Expenses'
        },
        children: [{
          path: '',
          component: ExpensesComponent,
        }, {
          path: 'view/:id',
          component: ExpenseViewComponent,
          resolve: {
            expense: ExpenseResolver
          },
          data: {
            title: 'Expense View'
          }
        }]
      }]
}

This will produce: Account / Expenses / Expenses when you are on the /account/expenses path. I was expecting: Account / Expenses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions