Created
April 9, 2012 02:11
-
-
Save bmelton/2340852 to your computer and use it in GitHub Desktop.
A Gentle Introduction to Ember - Adding a textbox to View
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/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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As snipped from http://sympodial.com/blog/extremely-gentle-introduction-emberjs-part-2/