I have two examples with the same CollectionView code running under 9.8.1 and latest.The 9.8.1 version works: http://jsfiddle.net/ethan_selzer/kcjzw/230/. But the latest version does not: http://jsfiddle.net/kcjzw/232/.
Are there breaking-changes to the Ember.CollectionView API in the latest build? Or, is there an issue with the current build of the CollectionView?
Thanks,
Ethan
You can either do what Kristofor Selden suggested in this fiddle http://jsfiddle.net/krisselden/6fAHZ/ (bind the
contentarray in theitemViewClass) or you can do it as follows:Fiddle: http://jsfiddle.net/ppanagi/WhGjR/
The default context of templates are now controller variables, so
{{foo}}will return the value of the controller variablefoo. If you need the value ofbarvariable of the View, use{{view.bar}}.Follow up: Yet another way to change the context is to use
{{with}}: