Angular.js for ASP.NET MVC Developers-Basics (Architecture goals and Components)

Angular.Js architecural goals: 

Following is the self explanotry pic :

  1. Two way Binding : two way binding is basically when 
    • view changes it updates model .
    • model updates it changes view and so on.
  2. Dirty Checking:  Angular defines a concept of a so called digest cycle. This cycle can be considered as a loop, during which Angular checks if there are any changes to all the variables watched by all the $scopes. So if you have $scope.myVar defined in your controller and this variable was marked for being watched, then you are explicitly telling Angular to monitor the changes on myVar in each iteration of the loop. Refernced from stackoverflow.
  3. Dependcy Injection : Encapsulate the code and made code more unit testable.

Angular Components:

Thanks for reading this blog post.

Interview Questions on Angular from this blog post:

  1. What is two way binding in Angular.js ?
  2. What is role of Controller ?
  3. Where should we put the business logic in Angular.js  ?
  4. What is Dirty Checking in Angular.js  ?

Once again i try to follow the approach write less , learn more !!!! 🙂 🙂 

via Blogger January 17, 2016 at 05:50PM


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s