I need to refresh some data depending on selection of a particular radio button group.
working plunker http://plnkr.co/edit/kZhsiU4pVpHhoscVkvMQ?p=preview
But I can get neither the ng-change nor the ng-click to execute my method which updates name and makes Hello World to show Hello 'selection'.
$scope.updateValue = function(){
$scope.name = $scope.data.myNumber;
};
But I can see that the two way data binding works - so the model is getting updated.
<span>You selected {{ data.myNumber }}</span>
On a side note: another thing I tried is to watch the model value and execute what I want to do, but that does not work either - the watchcollection is not triggered ever again other than at page load.
The plunker is just a representation of the radio button selection problem - what I want to achieve in the data refresh is more complex.
Any help would be much appreciated.