Skip to content

Inherited Route Data #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
burntblark opened this issue May 31, 2018 · 0 comments
Closed

Inherited Route Data #10

burntblark opened this issue May 31, 2018 · 0 comments

Comments

@burntblark
Copy link

burntblark commented May 31, 2018

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

burntblark added a commit to burntblark/coreui-angular that referenced this issue May 31, 2018
Potential fix to repeated breadcrumb from inherited data dictionary.
damingerdai added a commit to damingerdai/coreui-angular that referenced this issue Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant