I'd have a directives with a large form with some fields that are required and some that are not. The required fields are marked with required
attribute.
I want to pre-pend all the inputs with <span class='something'>*</span>
Basically something like this: $("input[required]").prepend(<span class='something'>*</span>)
My still limited understanding of angularjs points me to the compile function of my directives but I am lost when I get there.
Disclaimer: my gut feeling is telling me that doing something like that is not really "the angular" way - that's ok, regardless of whether I end up using this technique or not I'd like to know how to do that. That said I welcome more "angular" suggestions as well.
Thank you!