Comments (9)
For anyone trying to integrate this into an Angular2 project, I've asked and answered a question on StackOverflow that provides everything you'll need to make the Tennis Draw example work.
from treant-js.
Hello friends! I found this issue while searching on google and thanks to the help of @alignsoft I managed to do it.
I'll leave this here, maybe it will help somebody one day.
https://github.com/vladdmanole/angular-treantjs-test
from treant-js.
I'm trying to use Treant in an Angular2 project as well, and I'm not getting anywhere. Some help in this regard would be very much appreciated!
from treant-js.
@alignsoft do you use threant as any or you created the custom d.ts ?
and what you have in cli/webpack config ?
from treant-js.
@PfxMobile I typed is as any. I may go back when I have more time and create the d.ts file for it, and if I do, I'll make it available - probably submit to DefinitelyTyped or the appropriate outlet. Importing the file into my index.html file and referencing it via the window object means I don't have to do any webpack configuration to support it, but it does require that I distribute the js file as a separate import via my static assets directory for deployment.
from treant-js.
@alignsoft thanks
Will try to create basic d.ts and bundle with webpack.
from treant-js.
@alignsoft Hello I've seen your post on stackoverflow and thanks to you I've been able to integrate Treant-js to my Angular 4 projet.
However, I fail to add some Angular basic directives or data binding in the nodes, it seems the html generated isn't analyzed by Angular in the component life hook...
I've post my issue there: .
I've found a very ugly fix right now, using the ComponentFactory, but it's leading me nowhere with more and more issues appearing now.
Have you encountered this kind of problem, and maybe a fix for it?
Thanks a lot
from treant-js.
@bperraud Can you post a link to your StackOverflow question? I'm not sure if I can help or not, but I'll certainly give it a look and try
from treant-js.
@alignsoft sorry I've messed up with the link, here you are, thank for your attention!
https://stackoverflow.com/q/46392909/8658784
from treant-js.
Related Issues (20)
- the chart is loaded one time and the next chart is not loaded properly. HOT 1
- Contact me inside collapsible node not working HOT 1
- how to add text on the connect edge? HOT 1
- keep collapsible state on refresh HOT 1
- Connector over connector problem HOT 1
- Is a chart created using treant.js able to be made responsive? HOT 1
- Show text on arrow HOT 1
- over 100 nodes HOT 2
- react-native app HOT 1
- Doesn't work on NPM HOT 2
- subTeeSeparation HOT 1
- How to add a "marriage" node and connector? HOT 2
- Browser error when load 20000 nodes. HOT 3
- Align children
- Bug: text.data-foo doesn't work for JSON format HOT 2
- How to add node to top of clicked node HOT 1
- Compiling LaTeX in Treant nodes
- collapsable - Error when there is a lot of json data
- Fork with moving from javascript to typescript [RELEASE IS PUBLISHED] HOT 1
- Repaint when tree is hidden
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treant-js.