AngularJS nvD3 Error - What versions are compatible?

前端 未结 1 2019
野的像风
野的像风 2021-01-25 15:43

I have the same problem as with this user: Angular nvD3 Error: Invalid isolate scope definition for directive nvd3

The answer there said \"use the latest angularjs\" be

相关标签:
1条回答
  • 2021-01-25 15:51

    Works with this setup

    <link rel="stylesheet" href="//unpkg.com/nvd3/build/nv.d3.css"/>
    <script src="//unpkg.com/angular/angular.js"></script>
    <script src="//unpkg.com/d3@3/d3.js" charset="utf-8"></script>
    <script src="//unpkg.com/nvd3/build/nv.d3.js"></script>
    <script src="//unpkg.com/angular-nvd3/dist/angular-nvd3.js"></script>
    

    DEMO on PLNKR.

    See angular-nvd3 Issue #539 - d3 version 4.x is not supported

    0 讨论(0)
提交回复
热议问题