AngularJS - how to have a directive with a dynamic sub-directive

后端 未结 2 878
面向向阳花
面向向阳花 2020-12-09 12:36

Really struggling with this - have tried every way I can think of. Hopefully, somebody can help.

I have a directive which creates the outline of a custom control fo

2条回答
  •  無奈伤痛
    2020-12-09 13:06

    I have create a fiddle here.

    These are the directives.

    
    
    

    And here you do dynamic loading

    See if this helps you, and solves your purpose. I am making each directive into a template and then using ng include

提交回复
热议问题