Last active
August 29, 2015 14:08
-
-
Save huafu/ec19181c316646278587 to your computer and use it in GitHub Desktop.
Ember Starter Kit// source http://emberjs.jsbin.com/yebaca
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" data-template-name="index"> | |
{{each itemView='dummy'}} | |
</script> | |
<script type="text/x-handlebars" data-template-name="dummy"> | |
IN DUMMY TEMPLATE | |
{{view.val}} {{t}} | |
</script> |
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
App = Ember.Application.create(); | |
App.DummyView = Ember.View.extend({ | |
templateName: 'dummy', | |
val: 'cocorico' | |
}); | |
App.IndexController = Ember.ArrayController.extend({ | |
model: [{t: '1'}, {t: '2'}], | |
viewName: 'dummy', | |
viewClass: App.DummyView | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{each itemView='dummy'}}
works, but before it used to work with dynamic view class or name,and now that do not work anymore:{{each itemView='dummy'}}
=> OK{{each itemView=viewName}}
=> broken{{each itemView=viewClass}}
=> brokenitemViewClass
instead ofitemView
do not work as wellI don;t remember how it used to work, but it used to work with at least one of the 4 not working above