My controller contains data with various actions and different numbers of parameters:
$scope.actions = [
{name : 'rotate', r : '30'},
{name : 'translate', x : '10', y : '10'},
{name : 'scale', x : '10', y' : 10},
]
For example, rotate has one parameter, while translate and scale have two. I want to display a dropdown menu for each action in the list, and then based on the selected action, show text input fields for each parameter that action requires. How can I achieve this in Angular?