angularjs - notify angular to update dom (changed with d3js) -


i use angular , d3 show graph. got graph data angular , create via d3js , append #graph element. first time work fine when change criteria , got new data, graph wasn't updated. how can notify angular update dom. tank you.

$http({     method: 'post',     url: '/degree',     data: criteria,     headers: {         'content-type': 'application/json'     } }).success(function (response) {       creategraph(response); }); 

create graph d3 , append #graph element

var creategraph = function(response){ ....     var svg = d3.select("#graph").append("svg:svg")         .attr("width", w)         .attr("height", h); ..... } 

html

    <div id="graph">     </div> 


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -