I want to add some custom data to route when I define the routes.
How can I do that?
like:
{
path: 'department',
component: DepartmentComponent,
customdata: {
name: 'foo',
age: '23'
}
}
I don't want the custom data to display in URL. I just use it internally.