Skip to content

Instantly share code, notes, and snippets.

@mh-rafi
Created September 7, 2017 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mh-rafi/0b62ddaa8d30d46f3aa7b44cec1b29a4 to your computer and use it in GitHub Desktop.
Save mh-rafi/0b62ddaa8d30d46f3aa7b44cec1b29a4 to your computer and use it in GitHub Desktop.
export const BookRoutes: Routes = [
{
path: '',
component: AuthorsComponent
},
{
path: ':author',
component: BookListComponent,
data: { title: 'List', breadcrumb: '{{author}}' },
children: [
{
path: ':slug',
component: BookDetailComponent,
data: { title: 'Detail', breadcrumb: '{{slug}}' }
}
]
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment