Thursday, 2 June 2016

37. Angularjs difference between $scope && $routeScope


  $scope : is an object available to current controller it's created and it's children in the view.
  $rootScope: is globally accessable to all the controllers. and keep in mind is
  ( $routeScope can be defined     any controller(Home,Students,courese...ect) access by all the controllers).

Example :




No comments:

Post a Comment