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 trial

JavaScript AngularJS MVC Frameworks in AngularJS When to Use MVC vs DOM Manipulation Libraries?

Saichand Pullepu
Saichand Pullepu
11,905 Points

Can we combine MVC and DOM when building an application?

to be specific Can we combine Angular JS and Jquery libraries?

4 Answers

James Perrin
James Perrin
9,260 Points

Yes, 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
Zachary Green
16,359 Points

Yes Jquey and Angular play well together. I would, though, do some research on best practices for using jquery with jquery.

Timur Asayonok
Timur Asayonok
6,619 Points

Yes, of course. It's very nice when you combine MVC amd DOM. It's okay