Giter VIP home page Giter VIP logo

Comments (9)

alignsoft avatar alignsoft commented on August 15, 2024 4

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.

http://stackoverflow.com/questions/43165371/integrating-treant-js-in-angular2-project/43171601#43171601

from treant-js.

vladdmanole avatar vladdmanole commented on August 15, 2024 3

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.

alignsoft avatar alignsoft commented on August 15, 2024

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.

skiraikou avatar skiraikou commented on August 15, 2024

@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.

alignsoft avatar alignsoft commented on August 15, 2024

@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.

skiraikou avatar skiraikou commented on August 15, 2024

@alignsoft thanks
Will try to create basic d.ts and bundle with webpack.

from treant-js.

pyriceti avatar pyriceti commented on August 15, 2024

@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.

alignsoft avatar alignsoft commented on August 15, 2024

@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.

pyriceti avatar pyriceti commented on August 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.