0
In my app-routing-module I will reuse the same component for four different routes, but I need to know a way to differentiate these components.
Currently my app-routing passes a title property on the date:
{
path: 'x',
loadChildren:'./pages/x/x-x/x-x.module#xModule',
data: {
title: 'x'
}
}
How I recover that value in my component to make the logic I need?
You’re taking the data through the URL?
– Edward Ramos
Not by url, by route date property
– Eduardo Vargas
And what about the code in the routing file? How it receives and sends the values?
– Edward Ramos
is the same as the question for example. Values are statical.
– Eduardo Vargas
I did something similar, I’ll add my answer
– veroneseComS