Answers for "show loading spinner while page loads angularjs"

0

show loading spinner while page loads angularjs

<body ng-app="MyApp" ng-controller="MyCtrl">

  <div>
    <button class="btn" ng-click="load()">Load Tweets</button>
    <img id="spinner" ng-src="img/spinner.gif" style="display:none;">
  </div>

  <div>
    <ul ng-repeat="tweet in tweets">
      <li>
        <img ng-src="{{tweet.profile_image_url}}" alt="">
          {{tweet.from_user}}
        {{tweet.text}}
      </li>
    </ul>
  </div>

</body>
Posted by: Guest on October-12-2020

Code answers related to "show loading spinner while page loads angularjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language