I'm learning angular and I do not know how to work with the select. I want to have two selections and that the second depend on the first.
select 1 <select> <option>Animales</option> <option> Frutas</option> </select>
In case of selecting Fruits in the 1 select should appear in the select 2 the fruits, otherwise the names of the animals appear but not the two types fruits and animals at the same time therefore I say that the 2 select depends on the 1 .
select 2 <select> <option>Perro</option> <option>Gato</option> </select> <select> <option>Platano</option> <option>Manzana</option> </select>
When you click on the option1 and show the two options Animals and Fruits and select Fruits in the 2 option you should see the information related to fruits, Banana, Apple.
I also need to know how I can put a value that appears by default in
Thank you very much for your answers