-
-
Save andrekovac/c9ad452b5db0b8af6f3c to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/jeqogi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.1/ember.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script type="text/x-handlebars"> | |
<h1>{{App.name}}</h1> | |
<h2>{{App.secondsOnPage}}</h2> | |
</script> | |
<script id="jsbin-javascript"> | |
var App = Ember.Application.create(); | |
App.name = "Hello World!"; | |
App.secondsOnPage = 0; | |
setInterval(function() { | |
App.set('secondsOnPage', App.get('secondsOnPage') + 1); | |
}, 1000); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"><\/script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"><\/script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.1/ember.js"><\/script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script type="text/x-handlebars"> | |
<h1>{{App.name}}</h1> | |
<h2>{{App.secondsOnPage}}</h2> | |
<\/script> | |
</body> | |
</html></script> | |
<script id="jsbin-source-javascript" type="text/javascript">var App = Ember.Application.create(); | |
App.name = "Hello World!"; | |
App.secondsOnPage = 0; | |
setInterval(function() { | |
App.set('secondsOnPage', App.get('secondsOnPage') + 1); | |
}, 1000);</script></body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var App = Ember.Application.create(); | |
App.name = "Hello World!"; | |
App.secondsOnPage = 0; | |
setInterval(function() { | |
App.set('secondsOnPage', App.get('secondsOnPage') + 1); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment