This repository has been archived by the owner on May 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Access array property in v-repeat #12
Comments
hmm properties attached to Arrays are not observed. Also when you pipe an Array through filters what you get in the end might not be the original Array. If you have control over the structure, just use objects to wrap them, e.g |
Problem is I'm grouping items by date, and since object keys are not sorted I need to sort the group and output an array of arrays. |
What does your raw data look like? Is it possible to use |
// somewhere in my filter
// in my view
this isn't pretty but it works.
Basically an array of arrays with objects. |
yah, just access a property on $value[0] is fine enough for me... I won't even mutate the array, just adding another filter. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I know this is a strange request.
Is there anyway to access the .batch field on an array? I tried $value.batch but that doesn't seem to work. Sometimes I want to store some data on an array instance when run through a filter.
The text was updated successfully, but these errors were encountered: