VueJS part 12: Exposing methods and data in components

Kristijan
4 min readNov 19, 2023

Introduction

Recently, I started learning VueJS, and this article is part of the series of my notes while learning it. So far, I mostly used data and methods properties of the component. However, there are other, better ways to expose data or run some function and that is the topic of this post. So let us start with creating the initial component first.

Vue logo

--

--