Created
April 22, 2012 11:24
-
-
Save SantoshSrinivas79/2463729 to your computer and use it in GitHub Desktop.
Learning-Emberjs-Post-1
This file contains 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 = Em.Application.create(); | |
App.MyView = Em.View.extend({ | |
mouseDown: function() { | |
window.alert("hello world!"); | |
} | |
}); |
This file contains 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
<script type="text/javascript" src="http://dl.dropbox.com/u/10439810/ember/my_trials/js/libs/ember-0.9.7.1.min.js"></script> | |
<script type="text/javascript" src="http://dl.dropbox.com/u/10439810/ember/my_trials/js/app.js"></script> | |
<script type="text/x-handlebars"> | |
{{#view App.MyView}} | |
<h1>Hello world!</h1> | |
{{/view}} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment