If at first you don't succeed, call it version 1.0

Contact Me

Sarvesh Kushwaha
Email : sarveshkushwaha@outlook.com

Total Pageviews

Powered by Blogger.

Google+ Followers

Sunday, 17 January 2016

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 !!!! :) :)