I started learning angular.js. Can you guys show me the correct way to make a page that initially presents the ajax loader element that says โData loadingโ or something like that. Then, after the data has been received, it will update the view and hide the element. I can put stuff in a page load event using jquery, but how do you do it using pure angular? So far I have figured out how to do this in the click event:
<div ng-app="VideoStatus" ng-controller="VideoStatusCtrl"> <button ng-click="getVideos()">get videos</button> </div> <script type="text/javascript"> angular.module('VideoStatus', ['ngResource']).run(function(){ </script>
Agzam source share