tommy

Results 2 comments of tommy

You need a watcher: `let chartInstance;` `$scope.$on("create", function (event, chart) {` `chartInstance && chartInstance.destroy();` `chartInstance = chart;` `});` but this solution will bring other bugs when there are more than...

add option below: cancel: function(e) { if(e && e.keyCode == 27) return false; }