Skip to content

v-repeat with filterBy within other v-repeat #589

@kvdmolen

Description

@kvdmolen

I can't get this working:

countries = [
  {name: "Brasil", id: 1}
],
cities = [
  {countryid: 1, name: "Sao Paulo"}
]
<div v-repeat="countries">
  <div v-repeat="cities | filterBy id in 'countryid'">
    ...
  </div>
</div>

Something wrong? I keen ketting undefined is not a function (tried with various quote-options and also $parent.id instead of id does not work).

Many thanks,
Klaas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions