Vue.js: $refs only on parent

TIL (Today I learned) that on Vue.js if you give a DOM element/vue component it is only saved on the $parent.$refs.

I’m writing this down, because coming from Magento 1, my assumption was, that $refs is some kind of a library or singleton, so I can find ALLE components in it – this is not the case.

Kommentar verfassen