angularjs - copy the directive element in the template
pI'm creating a directive that should be applied on any HTML element and
use the same element in it's children./p pImagine going from this:/p
precodelt;some_standard_html_tag
my-directivegt;lt;/some_standard_html_taggt; /code/pre pto/p
precodelt;divgt; lt;some_standard_html_taggt;lt;/some_standard_html_taggt;
lt;spangt;lt;/spangt; lt;/divgt; /code/pre pIn other words, I basically
want to surround the element the directive is in a codediv/code and add
some other elements to that same div./p pAny suggestions?/p
No comments:
Post a Comment