I have a link bar to one of my scope values, like this:
var reference_string = "form.name";
And I want to assign a value to the object it refers to:
$scope.form.name = 'newvalue';
Looking around, I found 2 possible solutions: using simple JS or using angular $ parse .
However, the $ parse function seems to return a value. Can I do this to assign a new value?
T. I want to do something like
var reference_string = "form.name"; var reference = getReference($scope, reference_string);
source share