I have created an button as:
<ion-radio ng-repeat="business in multipleBusiness track by business.id" ng-model="choice.value" ng-value="business">{{business.name}}</ion-radio>
and In controller I am doing...
$scope.choice.value = localStorageService.get('defaultBusiness') || $scope.multipleBusiness[0];
Now the radio buttons are shown with a checkmark when the value passed to $scope.choce.value
is $scope.multipleBusiness[0]
but when the value from localStorage is used i.e. localStorageService.get('defaultBusiness')
, the chekmark is not shown
Even though on consoling both the values are same structure i.e objects with id and name keys.