title: How to check a radiobutton on button click in Angular?
body: <p>How can i programmatically check a radiobutton on a button click in Angular?</p>
  <p>I have a button like:</p>
  <pre><code>&lt;button type=&quot;button&quot; class=&quot;btn btn-block btn-dark&quot;&gt;
    Consegna adesso
  &lt;/button&gt;
  </code></pre>
  <p>And two radio buttons like:</p>
  <pre><code>        &lt;div class=&quot;form-check&quot;&gt;
            &lt;input
              class=&quot;form-check-input&quot;
              type=&quot;radio&quot;
              name=&quot;radioQuando&quot;
              id=&quot;radioOra&quot;
              value=&quot;ora&quot;
              checked
            /&gt;
            &lt;label class=&quot;form-check-label&quot; for=&quot;radioOra&quot; ngModel&gt;
              Ora &lt;span class=&quot;text-muted&quot;&gt;(Arrivo tra 20-40 min)&lt;/span&gt;
            &lt;/label&gt;
          &lt;/div&gt;
          &lt;div class=&quot;form-check&quot;&gt;
            &lt;input
              class=&quot;form-check-input&quot;
              type=&quot;radio&quot;
              name=&quot;radioQuando&quot;
              id=&quot;radioProgramma&quot;
              value=&quot;programma&quot;
              (click)=&quot;open(programma)&quot;
            /&gt;
            &lt;label class=&quot;form-check-label&quot; for=&quot;radioProgramma&quot;&gt;
              Programma
            &lt;/label&gt;
          &lt;/div&gt;
  </code></pre>
  <p>How can i check the radio <code>#radioOra</code> when the button is pressed?</p>