title: Submitting a hidden form in Angular4
body: <p>To overcome a CORS (cross origin request sharing) problem I am facing with submitting a regular HTTP request, I need to submit a hidden form in Angular 4. I did that in HTML with no problem. However, I am not sure how to do that in Angular. 
  Here is the code I have in the html of my component:</p>
  
  <pre><code>  &lt;form form #f="ngForm" action="https://whatever.site.I_access" method="get"&gt;
     &lt;input type="hidden" name="scope" value="openid email"&gt;
     &lt;input type="hidden" name="response_type" value="id_token token"&gt;
     &lt;input type="hidden" name="client_id" value="myClientId"&gt;
     &lt;input type="hidden" name="redirect_uri" value="https://my.redirect.com/"&gt;
     &lt;input type="hidden" name="nonce" value="aNonceValue"&gt; 
  
     &lt;button type="submit" (click)="f.submit()"&gt;Submit&lt;/button&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>In my .ts file, I have implemented the function "submit". By leaving it empty, the form is not submitted. What is the command to write inside this function just to submit the form with the specified action?</p>
  
  <pre><code> onSubmit(){
   console.log("form submitted");
   }
  </code></pre>
  
  <p>Any clues?</p>