seveves / angular-vis

An angular 2 vis.js project
MIT License
50 stars 41 forks source link

Problem including ng2-vis in Angular2 #14

Closed KevKo1990 closed 7 years ago

KevKo1990 commented 7 years ago

Hi,

I just wanted to include your code into my library and I hang at the moment at an error I do not understand.

I included in my project vis.js 4.16.1 properly. Furthermore I included in my Angular2 application your demo code examples and do not encounter any more issues with wrong folder settings etc.

You have maybe a clue what the problem is?

Thanks! ng2_vis

KevKo1990 commented 7 years ago

I found the error - I tried to include vis.js via my angular-cli.json. That caused some trouble. Furthermore, I still need the vis.css in my angular-cli.json, else the timeline example makes trouble...

You can close this.

seveves commented 7 years ago

I'm glad that the problem is solved. In my sample project there is no need to reference the vis.css because webpack knows how to load the css files. I'll bet you can get help from the angular-cli community on this problem :)