How can I target a nodeList in vuejs? querySelectorAll returns undefined. I'm only able to target an element using this.$refs | Sololearn: Learn to code for FREE!

0

How can I target a nodeList in vuejs? querySelectorAll returns undefined. I'm only able to target an element using this.$refs

Targeting DOM elements in vuejs

1 Answer

New Answer

0

I just solve it. I used the mounted life cycle hook. I targeted in the mounted hook and it worked.