Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (39 sloc) 1.78 KB
<!doctype html>
<html lang="en" ng-app="myApp">
<meta charset="utf-8">
<title>My AngularJS App</title>
<style type="text/css">
body { font-family: Arial; font-size: 18px;} { border: 1px solid black; margin:5px; border-radius:11px; padding: 3px; float:left;}
<span style="font-size:11px;">&larr; <a href="">return</a></span>
<h3>Open developer tools (F12) and wait for the beacon.png request in your network tab</h3>
<h4>These DIVs are faking API calls and will complete in 1-10 seconds</h4>
<div data-performance="PageName" data-performance-beacon="img/beacon.png">
<div style="float:left;">
<div class="box" data-ng-controller="Controller1" data-performance-loaded="Loaded">
<p>DIV 1 contents:</p>
<div ng-show="Loaded">{{ Loaded }}</div>
<div ng-hide="Loaded"><img src="img/loading.gif" /></div>
<div class="box" data-ng-controller="Controller2" data-performance-loaded="Products">
<p>DIV 2 contents:</p>
<div ng-hide="Products"><img src="img/loading.gif" /></div>
<div ng-show="Products" data-ng-repeat="n in Products.Names">{{ n }}</div>
<div class="box" data-ng-controller="Controller3" data-performance-loaded="Status.Complete">
<p>DIV 3 contents:</p>
<div ng-hide="Status.Complete"><img src="img/loading.gif" /></div>
<div ng-show="Status.Complete" >Three API calls complete</div>
<script src="lib/angular/angular.js"></script>
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="../build/angular-performance.min.js"></script>