title: Javascript: How do I add an HTML code within tags after a given condition is found to be true?
body: <p>I cannot use ng-if because if the condition is false, it would remove the whole tag(will it?), which I don't want. I just want a small code to be added within tags if condition is true, and not-added if it is false.</p>
  
  <p>I have something like:</p>
  
  <pre><code>&lt;input ***stuff*** ng-if="condition==true" style="text-transform:capitalize"/&gt;
  </code></pre>
  
  <p>If the condition is true, simply add the style in the tag, otherwise, don't add it.
  I know I can do it by adding a class if the condition is met true and then add the css-part for the class, but, is it possible the way I've mentioned?</p>