Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Angular JS a library or a framework?

While going through on-line documents about Angular JS in some of the documents they have mentioned Angular JS is not Library it is Frame Work but in some website they have mentioned Angular JS is Library.

Which one is Correct?

like image 715
Raj Avatar asked Aug 17 '15 12:08

Raj


Video Answer


1 Answers

Angular is a framework

This is a direct quote from the AngularJS site

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code you would otherwise have to write. And it all happens within the browser, making it an ideal partner with any server technology.

This is just the introduction piece but it tells us that AngularJS is definitely a framework and not just a library.

Define the differences

Library performs specific, well-defined operations.

Framework is a skeleton where the application defines the "meat" of the operation by filling out the skeleton. The skeleton still has code to link up the parts but the most important work is done by the application.

From this question, please credit the owner.

like image 59
Joe Lloyd Avatar answered Sep 23 '22 03:09

Joe Lloyd