I've been looking for a solution to bind my radio inputs to a model in a simple and clean way, but I haven't found one that works for me yet. In my HTML, I have:
<input ng-model="searchByRma" type="radio" name="search-type">
<input ng-model="searchByDelivery" type="radio" name="search-type">
And in the Controller:
$scope.searchByRma = true;
$scope.searchByDelivery = false;
Unfortunately, this setup doesn't work as expected, unlike with checkboxes...
Any suggestions on how to set the default value for the first radio button without losing data-binding?
Thank you!