forked from shailen/ng-darrrt-codelab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
piratebadge.html
33 lines (28 loc) · 1 KB
/
piratebadge.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!-- Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="utf-8">
<title>Pirate badge</title>
<link rel="stylesheet" href="../piratebadge.css">
</head>
<body badges ng-cloak>
<h1>Pirate badge</h1>
<div class="widgets">
<div>
<input type="text" id="inputName" maxlength="15" ng-model="ctrl.name">
</div>
<div>
<button ng-click="ctrl.generateName()"
ng-disabled="ctrl.inputIsNotEmpty">{{ctrl.label}}</button>
</div>
</div>
<badge name={{ctrl.pirateName}} style='float: left; margin-left: 20px;'></badge>
<script src="packages/shadow_dom/shadow_dom.min.js"></script>
<script type="application/dart" src="piratebadge.dart"></script>
<script src="packages/browser/dart.js"></script>
</body>
</html>