show a second option when a certain value of a first option is selected

0

Good Night, I'm developing a system, where depending on the option the user chooses in the first option , other options will appear in a second option ,

This would be the options in the first option on my controller

$scope.teste = [
{nome : 'A'},
{nome : 'B'},
];

If the user chooses the option A, these options must appear in the second option

$scope.teste1 = [
{nome : 'A1'},
{nome : 'A2'},
{nome : 'A3'},
];

and if you choose option B, these options appear

$scope.teste2 = [
{nome : 'B1'},
{nome : 'B2'},
{nome : 'B3'},
];
    
asked by anonymous 05.08.2015 / 07:40

1 answer

0

I found an example exactly as I wanted it to

link

    
06.08.2015 / 00:03