Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSaichand Pullepu
11,905 PointsCan we combine MVC and DOM when building an application?
to be specific Can we combine Angular JS and Jquery libraries?
4 Answers
James Perrin
9,260 PointsYes, you are able to use both JS libraries. In a project, you can combine any number of JS libraries depending on your needs. However, you may need to resolve conflicts. Like several JS libraries use the dollar symbol as a shortcut, you would need to use jquery instead of $ to write jQuery specific code.
jQuery vs. AngularJS: A Comparison and Migration Walkthrough
Zachary Green
16,359 PointsYes Jquey and Angular play well together. I would, though, do some research on best practices for using jquery with jquery.
Joshua Ferdaszewski
12,716 PointsYou can, but it is to be avoided. Here are some great references that explain why:
Timur Asayonok
6,619 PointsYes, of course. It's very nice when you combine MVC amd DOM. It's okay