"zingchart-angularjs unavailable"

I am new to angular and web applications in general, and it is difficult for me to work with zingchart.

What I would like to do is create charts in an angular application via zingchart, but I get this error on the browser console when I try to run my application.

I am sure that I correctly added the "zingchart-angularjs" dependency in my controller, but I am not sure that I am declaring zingchart libraries inside my hmtl. I have a few questions, please:

1) I downloaded zingchart, but after downloading I could not find the zingchart.min.js file. How important is it to work? How to download?

2) I am working on an eclipse. Should I install zingchart on eclipse as a plugin? If so, can someone help? So far, I just moved the zingchart-angularjs.js file to the project folder and declared my path in my html in script tags. Will it work for an eclipse?

3) How do I accurately declare zingchart libs inside html? I want to say whether I should tell FULL the path for the zingchart-angularjs.js file, for example, "script type =" text / javascript "src =" C: / kdi / workspace / cnt-ui-web / src / main / webapp / app / spas / cnt / partials / zingchart.min.js "/ script or declaring a relative path is enough? If the latter, how should it be?

Thank.

+4
source share
1 answer

1) → , zingchart.min.js zingchart.js html. cdn zingchart.min.js( zingchart cdn) html as,

 http://cdn.zingchart.com/zingchart.min.js

2) → , zingchart . js () .

3) → . html . .

.js ,

<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="http://cdn.zingchart.com/zingchart.min.js"></script>
<script type="text/javascript" src="zingchart-angularjs.js"></script>

src, , .

+5

Source: https://habr.com/ru/post/1663097/


All Articles