How to add DOM Elements (Angular directives) via jQuery's .append()?

前端 未结 6 1827
半阙折子戏
半阙折子戏 2020-12-13 23:40

Is there any way to add an element that is an Angular directive with jQuery methods like append() and have Angular do its compilation/linking to make it work as

6条回答
  •  情话喂你
    2020-12-13 23:52

    The accepted answer didn't provide a complete example, here's one:

    https://codepen.io/rhinojosahdz/pen/ZpGLZG

    
    
    
    
                                     
                  
提交回复
热议问题