Skip to content

Fix for dynamic DOM id

Compare
Choose a tag to compare
@mike-schultz mike-schultz released this 21 Oct 19:24
· 30 commits to master since this release

Fixed an issue where the directive would not properly run when using the ng-attr-id attribute to dynamically bind an id.

Usage example :

//HTML
<zingchart ng-attr-id="{{myId}}" zc-json="myJson"></zingchart>
//Javascript inside your controller
  $scope.myId = "chart-1";
  $scope.zcJson = { ...};