T
T
Tenebrius2017-08-08 13:29:14
Vue.js
Tenebrius, 2017-08-08 13:29:14

How to filter data in a model using Vue.JS?

Good afternoon.
I've been looking at Vue.js with curiosity for a long time, and I have an idea for a small application. It seems that for the most part everything is clear, but it does not let go of the question of how to do the following.
Let's say we have data:

[
 {
  title: "01",
  pram1: "a2"
 },
 {
  title: "02",
  pram1: "a2"
 },
 {
  title: "04",
  pram1: "a0"
 }
]

Each of the objects in the array contains data to render the component. You need to display only those for which param1 = a2. How can this be done in vue.js?
PS Does Vue.js have a model at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Shashenkov, 2017-08-08
@Tenebrius

Here is an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question