title: How do you change the selected radio button which is part of a template-driven form in the change event of the radio button group?
body: <p>I am using Angular Material, the radiobutton group, have two radio buttons in a group, one is "Accept", the other "Reject", having values "A" and "R".
  I am throwing up a confirmation dialog in response to a user clicking on the "Reject" radio button, and need to change the selected radio button to "Accept" (A) if the user specifies "Cancel" in the confirm.</p>
  
  <p>My code is in the change event of the radiobuttongroup.</p>
  
  <p>The radio button group is bound to a variable "statusCode" using [(ngModel)], and is part of a template-driven form.</p>
  
  <pre><code>onRadioChange($event: MatRadioChange) {
      if ($event.value === 'R' &amp;&amp; this.userNeedsToChange) {
         let result = confirm('Are you sure you want to reject? You cannot reverse this decision');
         if (!result) {
             this.statusCode = 'A';
         }
      }
  }
  </code></pre>