title: right way to call a function after selected option. Angular 4
body: <p>Hello I need to call a function after one of the options is selected.</p>
  
  <p>which is the best way to do it? im using angular4.</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>modo(){
    // if modo 1 is selected do something.
    // if modo 2 is selected do something.
    // if modo 3 is selected do something.
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;label&gt;Modo :&lt;/label&gt;
  &lt;select id="selectid" class="form-control-mb-12"&gt;
     &lt;option value="mod1"&gt;MODO 1&lt;/option&gt;
     &lt;option value="mod2"&gt;MODO 2&lt;/option&gt;
     &lt;option value="mod3"&gt;MODO 3&lt;/option&gt;
  &lt;/select&gt;</code></pre>
  </div>
  </div>
  </p>