What is AngularJS and why it is used ?
AngularJS is a structural framework for dynamic web apps. With AngularJS, designers can use HTML as the template language and it allows for the extension of HTML's syntax to convey the application's components effortlessly. Angular makes much of the code you would otherwise have to write completely redundant.
Features of AngularJS
- MVC Architecture.
- Two Way Data Binding.
- Templates.
- Directives.
- Expressions.
- Modules.
- Scope.
- Filters.
Advantages of AngularJS
-
It provides the capability to create Single Page Application in a very clean and maintainable way.
-
It provides data binding capability to HTML. Thus, it gives user a rich and responsive experience.
-
AngularJS code is unit testable.
-
AngularJS uses dependency injection and make use of separation of concerns.
-
AngularJS provides reusable components.
-
With AngularJS, the developers can achieve more functionality with short code.
-
In AngularJS, views are pure html pages, and controllers written in JavaScript do the business processing.
Disadvantages of AngularJS
-
Not Secure − Being JavaScript only framework, application written in AngularJS are not safe. Server side authentication and authorization is must to keep an application secure.
-
Not degradable − If the user of your application disables JavaScript, then nothing would be visible, except the basic page.