What does the dollar prefix ($) mean in Vue.js?

The use of the $ and _ prefixes in Vue are explained here: https://v2.vuejs.org/v2/style-guide/#Private-property-names-essential Specifically in the Detailed Explanation section. _ is for private instance properties: Vue uses the _ prefix to define its own private properties… $ is for public instance properties: As for the $ prefix, its purpose within the Vue ecosystem is …

Read more

$ Variable (Dollar Sign) in Chrome?

This has changed yet again, even since just last year. The devtools console provides $ as an alias to document.querySelector, along with many other things; here’s an excerpted list: $(selector) returns the reference to the first DOM element with the specified CSS selector. This function is an alias for the document.querySelector() function. $$(selector) returns an …

Read more