Well you're changing the data object and each item is dependant on that value (two-way data binding), your returned data object could be responsible for handling states, meaning you object would look like:
var demo = new Vue({
el: '#list',
data: {
title: 'list',
items: [
{
taller: false,
bar: 'Foo'
},
{
taller: false,
bar: 'Baz'
}
]
}
});
But I think that's too excessive, you could simply toggle a class, do a transition via CSS.
I thought about that also but decided against it. Problem i've got is i'm using a fixed height for the stagger element, which means that any open accordion simply doesn't show. I was hoping to add a class to the element to override the fixed height.