How to ignore a specific route in Angular Js ?

We can easily ignore a route (i.e anchor tag HREF value) in the angular js by just specify target=”_self” in the link.

Programming is Easy!!!

 

Advertisements

Angular view not updating on model change ??

If your angular view is not updating on model change then may be you need to apply scope changes like below-


   $scope.$apply()

Generally we faced this type of issue in the call back handler. I faced this issue while changing model in the window.setTimeout calback handler.

Programming is easy.

Model, View and Controler in Angular.Js

MODEL:- Logic that deals with storing or retrieving data is part of the  model.

VIEW:- Logic that deals with formatting the data to display to the user is part of the  view.

CONTROLLER:- The  controller  sits  between  the  model  and  the  view and connects them. The controller responds to user interaction, updating the data in the model and providing the view with the data that it requires.