Skip to content

Instantly share code, notes, and snippets.

@trek
Forked from gfranko/example.js
Last active December 19, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trek/6029478 to your computer and use it in GitHub Desktop.
Save trek/6029478 to your computer and use it in GitHub Desktop.
App = Ember.Application.create();
App.ExampleController = Ember.Controller.extend({
select: function(){
console.log("an example image was clicked");
}
});
<script type="text/x-handlebars" data-template-name="example">
<div class="main-container">
<h2>Pick Your Character:</h2>
<div class="row-fluid">
<div class="container">
<img src="./imgs/someImage.png" {{action 'select'}}>
</div>
<div class="container">
<img src="./imgs/someImage.png" {{action 'select'}}>
</div>
</div>
</div>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment