How do I use angularjs directives in generated d3 html?

后端 未结 5 1877
北荒
北荒 2020-12-05 00:26

I\'m trying to use the angularjs tooltip directive on my d3 visualisation, so I have something like

var node = svg.selectAll(\".node\")
    .data(nodes)
            


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 01:23

    if the html is generated by something other than angularjs and inserted into the DOM than you will need to compile the html that includes your directive attributes prior to incerting it into the DOM so that angular knows about it.

提交回复
热议问题