-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathangular-demo.html
More file actions
30 lines (29 loc) · 883 Bytes
/
angular-demo.html
File metadata and controls
30 lines (29 loc) · 883 Bytes
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
<!DOCTYPE html>
<html>
<head>
<link href="dist/module/angular-demo.css" rel="stylesheet">
</head>
</head>
<body>
<button type="button" id="btn">Klick mich!</button>
<my-app></my-app>
<my-input></my-input>
<my-http></my-http>
<script src="dist/module/common-angular.js"></script>
<script src="dist/module/angular-demo.js"></script>
<script>
var isEnsure = false;
function createEnsure () {
if (!isEnsure) {
var myEnsure = document.createElement('my-ensure');
document.getElementsByTagName('body')[0].appendChild(myEnsure);
util.ensureAngular();
isEnsure = true;
} else {
console.log('ensure have been loaded');
}
}
document.getElementById('btn').addEventListener('click', createEnsure);
</script>
</body>
</html>