forked from bitrut/angularjs-presentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
249 lines (213 loc) · 8.29 KB
/
index.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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="utf-8">
<title>Re-discover HTML with AngularJS</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<script src="lib/js/jquery-2.0.3.js"></script>
<script src="lib/js/angular.js"></script>
<script>
function AppCtrl($scope){
$scope.greeting = '{{ greeting }}'
$scope.yourNameStr = '{{ yourName }}'
}
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body ng-controller="AppCtrl">
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h2>Re-discover HTML with</h2>
<h1><img src="img/angularjs.jpeg" title="AngularJS" style="border:0; background-color: transparent; box-shadow: none;" /></h1>
<p>
<small>Created by <a href="http://pawelkowalski.info">Paweł Kowalski</a> / <a href="http://twitter.com/bitrut">@bitrut</a></small>
</p>
</section>
<section>
<h2>About me</h2>
<p>I develop medical software at <a href="http://infermedica.com"><img src="img/infermedica.png" title="Infermedica" style="border:0; background-color: transparent; box-shadow: none; vertical-align: middle; margin-left: 20px;" /></a></p>
<p>I am organizer of <a href="http://wroclaw.gtug.pl"><img src="img/gdgwroclaw.png" title="Infermedica" style="border:0; background-color: transparent; box-shadow: none; vertical-align: middle" height="70" /></a></p>
</section>
<section>
<h2>HTML is great!</h2>
<ul>
<li class="fragment">declarative = easy to learn</li>
<li class="fragment">powerful and beautiful!</li>
</ul>
<img src="img/ugly-website.jpg" title="Ugly website" style="border:0;" class="fragment" />
</section>
<section>
<h2>HTML is great for static web page</h2>
<pre><code>
<p>Hello world!</p>
</code></pre>
<h3 class="fragment">with animated GIFs of course :)<br/><img src="img/badger.gif" title="Animated GIF" style="border:0; background-color: transparent; box-shadow: none;" /></h3>
<h3 class="fragment">But to build Web Apps we need something more!</h3>
</section>
<section>
<h2>1995: Welcome Javascript!</h2>
<pre><code>
<p id="greeting1"></p>
<script>
var isIE = document.attachEvent;
var addListener = isIE
? function(e, t, fn) {
e.attachEvent('on' + t, fn);}
: function(e, t, fn) {
e.addEventListener(t, fn, false);};
addListener(document, 'load', function(){
var greeting = document.getElementById('greeting1');
if (isIE) {
greeting.innerText = 'Hello World!';
} else {
greeting.textContent = 'Hello World!';
}
});
</script>
</code></pre>
<img class="fragment" src="img/monkey.gif" title="Animated GIF" style="border:0; background-color: transparent; box-shadow: none;" />
</section>
<section>
<h2>What about <img src="img/jquery-logo.png" title="jQuery" style="border:0; background-color: transparent; box-shadow: none; vertical-align: middle" height="100" />?!</h2>
<div class="fragment" style="margin: 20px 0px">
<pre><code data-trim contenteditable style="margin: 20px 0px">
<script type="text/javascript">
$(function () {
var name = $('#name').val();
var greeting = $('#greeting');
name.keyup(function () {
greeting.text('Hello '+ name + '!');
})
})
</script>
<div>
<label>Name:</label>
<input type="text" id="name">
<p id="greeting"></p>
</div>
</code></pre>
<div>
<label>Name:</label>
<input type="text" id=name placeholder="Enter a name here" style="vertical-align: middle">
<hr>
<h1 id="greeting">Hello</h1>
</div>
<script type="text/javascript">
$(function () {
var name = $('#name');
var greeting = $('#greeting');
name.keyup(function () {
greeting.text('Hello '+ name.val() + '!');
})
})
</script>
</div>
</section>
<section>
<h3><span style="color: red"><3</span> jQuery (for manipulating DOM)</h3>
<h3 class="fragment">Imperative (vs. declarative HTML)</h3>
<h3 class="fragment">jQuery "just" allows you type less</h3>
<h4 class="fragment">and not worry too much about IE :)</h4>
<h2 class="fragment">But web apps is more than just DOM manipulation!</h2>
</section>
<section>
<h2>AngularJS can help!</h2>
<ul>
<li class="fragment">Client-side framework MVC</li>
<li class="fragment">for building Single Page Applications</li>
<li class="fragment">Open Source (The MIT License)</li>
<li class="fragment">by Google</li>
</ul>
</section>
<section>
<h2>Declarative FTW!</h2>
<pre><code>
<div ng-app>
<label>Name:</label>
<input type="text" ng-model="yourName">
<p>Hello {{yourNameStr}}!</p>
</div>
</code></pre>
<div>
<label>Name:</label>
<input type="text" ng-model="yourName" placeholder="Enter a name here" style="vertical-align: middle">
<hr>
<h1>Hello {{ yourName }}!</h1>
</div>
</section>
<section>
<h2>3 x D:</h2>
<ol>
<li>Data Binding (2-way)</li>
<li>Dependency Injection</li>
<li>Directives</li>
</ol>
</section>
<section>
<h1>Let's hack!</h1>
</section>
<section>
<h2>Angular = future of the web in your hands</h2>
<ul>
<li>Web Components</li>
<li>Model Driven Views</li>
<li>Object.observe</li>
</ul>
</section>
<section>
<h2>Useful stuff</h2>
<ul>
<li><a href="http://angularjs.org/">angularjs.org</a></li>
<li><a href="https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk">AngularJS Batarang</a> (Chrome Extension)</li>
<li><a href="http://angular-ui.github.io/">Angular UI</a></li>
<li><a href="http://ngmodules.org/">ngmodules.org</a></li>
<li><a href="http://egghead.io/">Training videos</a></li>
</ul>
</section>
<section>
<h1>THE END</h1>
<h2>Questions?</h2>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>