title: angular how input and select value return result without submit
body: <p>angular how input and select value return result without submit
  i have currency converter form latest api</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;form [formGroup]="newForm" (ngSubmit)="convert()"&gt;
          &lt;div&gt;
  
              &lt;h1&gt;
                  Currency
              &lt;/h1&gt;
              &lt;div&gt;
  
                  &lt;input type="number" formControlName="amount1"&gt;
  
                  &lt;select id="from" formControlName="from"&gt;
           &lt;option value="" disabled&gt;Choose currency&lt;/option&gt;
          &lt;option value="{{ m.code }}" *ngFor="let m of rates" &gt;{{m.code}}&lt;/option&gt;
      &lt;/select&gt;
              &lt;/div&gt;
              &lt;div&gt;
  
                  &lt;input type="number" [value]="name"&gt;
  
                  &lt;select id="to" formControlName="to"&gt;
           &lt;option value="" disabled&gt;Choose currency&lt;/option&gt;
          &lt;option value="{{ m.code }}" *ngFor="let m of rates" &gt;{{m.code}}&lt;/option&gt;
      &lt;/select&gt;
              &lt;/div&gt;
              &lt;button type="submit" [disabled]="!newForm.valid"&gt; Convert &lt;/button&gt;
          &lt;/div&gt;
      &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>For example, to convert from dollar to euro, enter a number in &quot;amount1&quot; and return it to  &lt;input type=&quot;number&quot; [value]=&quot;name&quot;&gt;. How do this without submit button and automatically returns the result and if I change the number it automatically changes</p>