title: How to get all input fields within a form (AngularJS directive)
body: <p>I would like to create a directive which does something awesome with all the input fields within a form.</p>
  
  <p>However, i'd be happy if i could apply that directive only once (to the <code>&lt;form&gt;</code> itself) instead of having it to bind to all the <code>&lt;input&gt;</code>'s</p>
  
  <p>How should i determine all of a forms input elements?</p>
  
  <p>I see some possible solutions:</p>
  
  <pre><code>element[0].childNodes  // filter all inputs
  element[0].children
  element[0].elements   // seems to contain nothing but the stuff i want
  </code></pre>
  
  <p>Maybe i am even to close-minded and don't see the correct solution here.</p>
  
  <p>Any help and opion is appreciated</p>