control radio button selected angularjs

Radio “Default shipping Address” selected as default, when select Radio “new Shipping Address” it call a popup: “newAddress”.
When popup “new Address” closed i want to change radio selected to “Default Shipping Address”. (refresh radio selected to default) any help?
enter image description here
enter image description here

            <div class="radio text-info mt10 mb20">
              <label>
                <input type="radio" ng-model="form.receiverType" value="SELECT">
                <b data-translate="_Paymen001">Default shipping Address </b>
              </label>
            </div>
            <div class="radio mt10 mb20">
              <label>
                <input type="radio" ng-model="form.receiverType" value="INSERT">
                <b data-translate="_Paymen002">New shipping Address </b>
              </label>
            </div>

click cancel close popup

<button data-dismiss="modal" aria-label="Close" class="btn btn-primary btn-lg ng-scope" type="button" data-translate="_Cancel" ng-click="cancelSaveNewAddss()" style=" margin-top: 20px;">Cancel</button>

event click radio button

// bind event when change receiverType
          $scope.$watch('form.receiverType', function(newVal, oldVal) {
          switch (newVal) {
            case 'SELECT':
                            $scope.selecteDefaultAddr();
                  break;
            case 'INSERT':
                  $('.modal-receiver-add').modal();
                  break;
            case 'MODIFY':
                // get reciever list
                  $scope.getReceiverList();
                  $('.modal-chondanhba').modal();
                  break;
            default:
                  break;
        }
    }, true);

Source: AngularJS

Related Post