title: Dynamic attribute with Angular
body: <p>I'd like to add lang='fa' attribute to all input:text in my form with angular .    </p>
  
  <p>with a little condition : if body has class <code>fa</code> all <code>input:text</code> <strong>not email type</strong> get lang="fa" attribute .    </p>
  
  <p>i know how to do it with jquery but i don't know how to do it in angular way .<br>
  here is my fiddle with Jquery : <a href="http://jsfiddle.net/eh176tLg/" rel="nofollow">Demo</a><br>
  <strong>Jquery :</strong> </p>
  
  <pre><code>$(document).ready(function(){
          if($("body").hasClass('fa')){
              if('input:text'){
                  $('input:text').attr('lang','fa');
              }
          }
      });
  </code></pre>