+ 2
JS Framework vs Library
I heard AngularJS is a JS framework and jQuery is a JS library. But what does frameworks and libraries do on our web pages? Can I run a single webpage with both AngularJS and jQuery?
1 Resposta
+ 6
A library will provide you with functions, objects, etc. that your project can use and interact with.
A framework provides you with libraries, APIs, software design principles, etc. for building your project (this definition can change based on context).
See this stackoverflow question for more information: https://stackoverflow.com/q/148747
And finally, yes you can use both. In fact, AngularJS uses a modified subset of jQuery. From their FAQ:
Does AngularJS use the jQuery library?
Yes, AngularJS can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, AngularJS falls back to its own implementation of the subset of jQuery that we call jQLite.