So, I've been trying to filter an select with another based on this informations came from a web service:
{
sections: [
{
st_id: '1',
st_nm: 'name1',
blocks: [
{
bl_id: '1',
bl_nm: 'block1'
}
]
},
{
st_id: '2',
st_nm: 'name2',
blocks: [
{
bl_id: '2',
bl_nm: 'block2'
},
{
bl_id: '2-1',
bl_nm: 'block2-1'
}
// ... and so on
]
}
// ... and so on
]
}
I tried a lot of things and combinations, but I'm really new in Angular and nothing works. I need filter the second select, and fill with the "blocks" information, with the "st_nm" field selected in the first select element.
I'm grateful for your answers!