On Github skhome / angular-slides
Users:-)
Developers:-(
static web page
<p>Hello World!</p>
dynamic web application
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(window, 'load', function () { var greeting = document.getElementById('greeting'); if (isIE) { greeting.innerText = 'Hello World!'; } else { greeting.textContent = 'Hello World!'; } });
Imperative :-(
<p>Hello World!</p>
<p>{{greeting}}}</p>
{ first: "Jean-Luc", last: "Picard", imgSrc: ... }
Spreadsheet-like updates
<div class="tabbable"> <ul class="nav nav-tabs"> <li class="active"> <a href="#tab1">Section 1</a> </li> <li> <a href="#tab2">Section 2</a> </li> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab1"> <p>I'm in Section 1.</p> </div> <div class="tab-pane" id="tab2"> <p>Howdy, I'm in Section 2.</p> </div> </div> </div>
<tabs> <pane title="Section 1"> I'm in Section 1 </pane> <pane title="Section 2"> Howdy, I'm in Section 2 </pane> </tabs>