Instead of using ng-if, I need a solution that allows me to add a small piece of code within tags if a condition is true and not add it if the condition is false.
For example, I have:
<input ***stuff*** ng-if="condition==true" style="text-transform:capitalize"/>
If the condition is true, I want to include the style in the tag, otherwise, omit it altogether. I know I could achieve this by adding a class when the condition is met and then applying the CSS for that class, but I'm wondering if there's a way to do it as I've described?