title: Angular 2: add csrf parameter to noNgForm
body: <p>Today faced an issue with submitting a form from an html template on angular SPA.
  First of all simple form with submit doesn't work out of the box since angular catches the submit event not letting the form to be submitted.</p>
  
  <pre><code>   &lt;form action="/api/connect/facebook" method="POST"&gt;
         &lt;input type="hidden" name="scope" value="email" /&gt;
         &lt;button type="submit" class="btn btn-primary btn-block"&gt;&lt;i class="icon-facebook"&gt;&lt;/i&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Login via Facebook&lt;/button&gt;
     &lt;/form&gt;
  </code></pre>
  
  <p>To let angular ignore that and let your browser to do the post you have to add <code>ngNoForm</code> header:</p>
  
  <pre><code>   &lt;form ngNoForm action="/api/connect/facebook" method="POST"&gt;
         &lt;input type="hidden" name="scope" value="email" /&gt;
         &lt;button type="submit" class="btn btn-primary btn-block"&gt;&lt;i class="icon-facebook"&gt;&lt;/i&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Login via Facebook&lt;/button&gt;
     &lt;/form&gt;
  </code></pre>
  
  <p>This may be not very common for SPA because such form submit will navigate browser away from SPA, however that's what I need. </p>
  
  <p>Good thing - I am using spring-boot as my backend, so with spring-security it has nice csrf and cors protection not letting me to submit the form. I getting the exception:</p>
  
  <blockquote>
    <p>Invalid CSRF Token 'null' was found on the request parameter '_csrf'
    or header 'X-CSRF-TOKEN'</p>
  </blockquote>
  
  <p>So, the question is how to provide the value of csrf for angular template?</p>