Angular directive bug

Problem: Use replace:true, use @ to pass in a parameter, and use the same name, then the parameter in the directive template will have one more space, and then the element cannot be selected through jquery Solution: Use a different name to pass in that
is Yes, for example, if the template is called id, then pass in xid

Guess you like

Origin blog.csdn.net/yujiayinshi/article/details/50464978