0

Please help Angular

I have to div show hide on the basis of drop down selection can anyone help me for this. <select id="mydiv">   <option value="music">Music</option>   <option value="picture">Picture</option>   <option value="content">Content</option> </select> <div id="music"> </div> <div id="picture"> </div> <div id="content"> </div>

7th Mar 2020, 4:47 PM
swarup
swarup - avatar
1 Antwort
0
I don't how it's done in Angular, but in general you evaluate the selected dropdown option value, and use that to decide which of all the divs is supposed to be shown or hidden. Just passing off an idea.
7th Mar 2020, 5:33 PM
Ipang