-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (48 loc) · 2.01 KB
/
index.html
File metadata and controls
62 lines (48 loc) · 2.01 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>testrangeJS</title>
<link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<h3>testrangeJS</h3>
<p>understanding JavaScript is essential.</p>
</header>
</div>
<hr>
<div class="container">
<h1 reply="this is a custom attribute added to the DOM.">custom attributes</h1>
<p>we're just adding a custom attribute to the DOM. </p>
<p>check the h1 tag. here you find a attribute called reply. </p>
<p>this could be accesed via: </p>
<p>$("h1").attr("reply")</p>
</div>
<div class="container">
<h1 >global namespace</h1>
<p>is a space in the DOM where a object or variable could be stored. </p>
<p> but don't do it, because it will pollut the namespace.</p>
</div>
<div class="container" ng-controller="basicController">
<h1>angular - the beginning</h1>
<p>this is a controller! </p>
<p>check app.js for added controller</p>
</div>
<div class="container" ng-controller="playController">
<h1>dependency injection</h1>
<p>scope injection</p>
</div>
<div class="container" ng-controller="anotherController">
<h1>example with model-bobject ;)</h1>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="utility.js" type="text/javascript"></script>
<script src="app.js" type="text/javascript"></script>
</body>
</html>