Skip to content

Instantly share code, notes, and snippets.

@bmelton
Created April 9, 2012 02:11
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 bmelton/2340852 to your computer and use it in GitHub Desktop.
Save bmelton/2340852 to your computer and use it in GitHub Desktop.
A Gentle Introduction to Ember - Adding a textbox to View
<script type="text/x-handlebars">
<img {{bindAttr src="Example.logo"}} alt="Logo"><br />
<h1>{{ Example.name }}</h1>
{{view Example.ChangeQuery id="new-todo" placeholder="#EmberJS"}}
{{#view Example.LoopingView id="looping-view" }}
{{#each Example.populate}}
<li>{{ from_user_name }} - {{ text }}!</li>
{{/each}}
{{/view }}
</script>
@bmelton
Copy link
Author

bmelton commented Apr 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment