Relative Content

Tag Archive for vuejs2

How can i use refs in vue on multiple elements?

How can i use refs in my vue component (preferably in a loop) to manipulate multiple dom elements in my template? Let’s say for example that i want to apply an animation with GSAP on every <p ref="pre"> in a function. How would i do that? Like i would i access them in mounted as an array or something? Current code will only apply for the first element right?