I currently have the following routes defined:
const routes: Routes = [
{
path: ':product/new',
children: [{
path: 'std/:country',
component: SignUpComponent,
data: {
animation: 'animate',
segment: 'std',
country: ':country'
}
}, {
path: 'exp/:country',
component: PaymentComponent,
data: {
animation: 'animate',
segment: 'exp'
}
}
}
]
Would setting country: ':country'
like this be the correct method for passing dynamic URL data to the SignUpComponent
? If so, what would be the best way to access and utilize this data within my SignUpComponent Component
?