Skip to content

Commit d09a403

Browse files
committed
Merge pull request #20 from opiepj/feature/spinner
Loading Spinner
2 parents d137a92 + 4436c1f commit d09a403

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/public/index.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
<script>baseElement = document.querySelector('base');baseElement.attr = baseElement.getAttribute;</script>
1616
<!-- styles -->
1717
<style>
18+
.loader {
19+
width: 75px;
20+
position: fixed;
21+
right: 50%;
22+
top: 50%;
23+
}
24+
1825
body {
1926
margin: 0;
2027
}
@@ -28,8 +35,8 @@
2835
</head>
2936
<body>
3037

31-
<app>
32-
Loading...
38+
<app (loading)="loading = $event" autofocus>
39+
<img class="loader" [hidden]="!loading" src="https://www.brown.edu/sites/default/themes/pawtuxet/img/loader-larger.gif">
3340
</app>
3441

3542
<!-- Commmon files to be cached -->

0 commit comments

Comments
 (0)