Skip to content
Loading
AngularJS Showing Busy icon when loading data  
  •     "loadData()" class="btn btn-primary">Click for Load data  
  •   
  •   
  • angular.module('myApp', [])  
  •   
  •   .controller('myController', function($scope, $http) {  
  •       $scope.loadData = function() {  
  •         $scope.students = [];  
  •         $scope.loading=true;  
  •         $http.get('https://api.myjson.com/bins/x1rqt.json')  
  •           .success(function(data) {  
  •               $scope.students = data[0].students;  
  •               $scope.loading=false;  
  •         });  
  •       }  
  •   
  •   });  
  •   
  • Hope it will help othrewise use isolation in your derective with = scope.  
  • @Rajkiran i am new in angular. so do not understand what you try to say "isolation in your derective with = scope. " ??
     
    what we can do with isolated scope ?
     
    please come with a example if possible. thanks