Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure Angular is better #2

Open
couzic opened this issue Feb 22, 2014 · 0 comments
Open

Pure Angular is better #2

couzic opened this issue Feb 22, 2014 · 0 comments

Comments

@couzic
Copy link

couzic commented Feb 22, 2014

On my current AngularJS project, we are integrating jsTree in a directive. It started pretty well, but very fast it became a nightmare. I can't recall half the problems we encountered, but we painfully ended up with a bunch of buggy, convoluted code. It would have been a better idea to just write our tree directive from scratch.

However, I just ran into a project I wish I had know about before :

https://github.com/tchatel/angular-treeRepeat

It's exactly what we needed, it's pure AngularJS (which is a HUGE benefit, no more jQuery events to register to), and the creator is a well known and respected individual in the AngularJS community (the way I structure my apps owes him and his blog a lot).

In general it's not a good idea to wrap an existing jQuery-based library with an Angular directive, and it's especially true in this particular case. Save yourself the pain and go pure Angular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant