AngularJS ng-repeat with custom element inside a table is rendering strangely

前端 未结 3 1308
不知归路
不知归路 2020-12-08 04:58

I\'m trying to re-use a portion of my HTML view in multiple places. The portion I want to re-use is table cells in an HTML table. The problem is that my custom directive i

3条回答
  •  天涯浪人
    2020-12-08 05:23

    Use replace: true in your directive and your will be replaced with the root item in your template, a , so this will not confuse the HTML.

提交回复
热议问题