I have the name of my form in $scope.model variable and its adding dynamically. I wanted to change the value of the form field according to $scope.model.
For example
$scope.model = 'form.field.text';
$scope.[$scope.model]= 'new value';
But i it doesn't change the value of $scope.form.field.text. How can I do this?
Here's my plunkr