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

Asked

Viewed 32 times

0

Good Night, I am developing a system, in which depending on the option the user choose 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 option A, these options have to 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'},
];

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.