I'm doing some animations where I'm catching events on the parent view and want to animate my childViews in a certain order. So I've ended up with something like this:
views/index.js
import Ember from 'ember';
export default Ember.View.extend({
click: function(){
console.log(this.childViews) // undefined :'(
}
});
views/post.js
import Ember from 'ember';
export default Ember.View.extend({});
My template:
{{#each post in content itemViewClass="post"}}
<img {{bind-attr src=post.image}}">
{{/each}}
I don't quite understand how I can access the access the post
views from my index
view.
Aucun commentaire:
Enregistrer un commentaire