Avoid using extra DOM nodes when using nginclude

后端 未结 5 713
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 10:23

I\'m struggling to wrap my mind around how to have an ng-include not use an extra DOM element as I\'m building an angular app from a plain-HTML demo. I\'m working with pretty sl

5条回答
  •  一向
    一向 (楼主)
    2021-01-31 10:34

    For anyone who happens to visit this question:

    As of angular 1.1.4+ you can use a function in the templateURL to make it dynamic.

    Check out this other answer here

提交回复
热议问题