I am trying to pass the state property with routerLink and open it on a new tab. This is my code:
<a [routerLink]="['/caminho/item']" target='_blank' [state]="{carTO: carTO}">
Without target='_blank' I can get the state value this way:
router.getCurrentNavigation().extras.state.carTO
But when I use target='_blank', the state is undefined.
What do I need to do to be able to get the state, using routerlink and opening on a new tab(target='_blank')?