Since long time, HTML was considered to develop static html pages, and was used with other server-side frameworks to develop a complete website. But, there were lot of challenges in the server-side frameworks, and mainly with MVC (Model-View-Controller) architecture.
So, to encounter all these server-side framework related issues,
The main aim was to decouple client-side code to server-side code, and to decouple DOM manipulation from the application.
AngularJS was able to develop rich internet application using
MVC (Model-View-Controller) &
MVVM (Model-View-ViewModel) architecture.
Basically, AngularJS extends the HTML tags with custom attributes. These attributes are called
Controllers. In angular 1.x, there was 2 way data bindings. The changes in the angular model in view automatically reflecting in change in value in AngularJS controller’s scope. Now, what is controller’s scope?
The controller’s scope is the object, which was available both in view and controller. It bind the data between view and controller. Like other objects, this scope has its own properties and methods. It is represented by
There are following versions of Angular.
- AngularJS 1.x
- Angular 2.0
- Angular 4.0
- Angular 5.0
- Angular 6.0
In this blog, we learned about how
I hope you enjoy this blog.