Showing posts with label InterviewQuestionsAngularJS. Show all posts
Showing posts with label InterviewQuestionsAngularJS. Show all posts

Saturday, 28 April 2018

Issues while using AngularJS with MVC


Issues while using AngularJS with MVC :
1.         Routing and Redirection becomes difficult : When we are trying to route, both the AngularJS and MVC are having routing concept, So the application gets confused to which routing should follow. And it stucked in the same page if we want to redirect to other page, actually in angularjs we use $state.go() for routing between the pages, and in MVC we use ActionResult to return View(), If we use MVC routing then we have to use $window.location.href instead of $state.go() (here state does not maintain in between controllers by using AngularJS with MVC.

Tuesday, 16 January 2018

What is Digest Cycle In AngularJS ?

What is Digest Cycle In AngularJS ?
            Digest Cycle is responsible for two way binding. When A directive like ng-model having some value in the  input control which is from $scope object of the controller , if user changes the exisiting value with some new value, then internally this Digest Cycle evauates.

In this Digest Cycle mainly three functions come in front, those are $watch(), $digest() and $apply().

Sunday, 25 June 2017

AngularJS Interview Questions

What is AngularJS ?
AngularJS is Framework, Which Is An Enhancement of JQuery Libraries That Is Having MVVM Pattern, i.e., Having Two Way Binding.

AngularJS Application Is Built By Using AngularJS Module, Controller, Directive, Factory and Service And AngularJS Is Also Having Different Events which are notated with “ng” such as ng-click, ng-repeat, ng-blur And Also Haivn Some Properties Which defines the Application Initialization and Define The AngularJS Application ng-init and ng-app respectively and to Bind The Data With the controls ng-model is used. And also having some properties which can perform some actions on the controls are ng-show, ng-hide, ng-disable, ng-require etc..