It is allowed within the same component launch at the same time, but it allows parents to finish before the children, so the easiest way to achieve this is to create a parent route in order to resolve the book.
{ path: 'book/:id', resolve: { document: BookResolve }, children: [ { path: '', component: BookComponent, resolve: { title: BookTitleResolve } } ] }
Please note that the parent component does not display the component, and the child element contains an empty path, therefore, despite some added pattern, the route should act equally functionally.
Then, inside your implementation of BookTitleResolve, you can get the original route:
class BookTitleResolve { resolve(route: ActivatedRouteSnapshot) {
DNJohnson
source share