Skip to content
Night Programmer
MENU
  • Vue.js
  • React.js
  • Svelte
  • JavaScript
  • About us
  • Contact us
  • Privacy policy
Close Menu
  • Vue.js
  • React.js
  • Svelte
  • JavaScript
  • About us
  • Contact us
  • Privacy policy

How to use watch in Composition API in Vue.js | Example

Vue.js GautamK August 7, 2022

We can observe any change in a reactive state in Vue.js using the watch property. watch has changed a bit from Options API to Composition API. In Options API, watch…

How to use computed properties in Composition API in Vue.js | Example

Vue 3 / Vue.js GautamK August 7, 2022

Computed properties are great way to cache data. These cache data only change when the reactive properties it depends on changes. Let's have a look at how we can define…

Convert ref() states to reactive() states in Vue.js | Example

Vue 3 / Vue.js GautamK August 6, 2022

ref() creates a reactive object for whatever variable we pass it in. However, it is only preferable if we're dealing with some primitive values. Like strings, numbers, boolean, etc. For…

Convert a component from Options API to Composition API | Vue.js | Vue 3 | Example

Vue 3 / Vue.js GautamK August 6, 2022

Composition API has several advantages over the Options API. I've written an article on what they are. Here in this article, I'm showing an example on how we can convert…

Advantages of using Composition API over Options API in Vue 3 (Vue.js) | Example

Vue 3 / Vue.js GautamK August 6, 2022

Vue 3 came with Composition API, while still keeping support for the Options API. Vue 3 also recommends the use of Composition over Options API. Let's have a look at…

How to validate phone number in Vue.js | Example

Vue.js GautamK August 5, 2022

You can easily validate a phone number in Vue.js without using any external library. Below I've written a code which you may follow to learn how to do it without…

How to create a logger in JavaScript | Example

Javascript GautamK August 4, 2022

You have multiple choices to choose from for a logger, thanks to NPM. However, you can also create your own logger with just a bit of code. Here's an example…

Create / populate an array with random words in JavaScript

Javascript GautamK August 3, 2022

Earlier I've written an article on how you can populate an array with numbers in JavaScript. Here in this article we're learn how we can populate an array with random…

How to create an array with N numbers in JavaScript?

Javascript GautamK August 3, 2022

There are multiple ways to create or fill an array with N numbers in JavaScript. Here I'm showing some of the most popular ways. 1. Using the fill() method This…

  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • …
  • 22
Featured Posts
  • Best Vue.js UI libraries in 2023
  • Optimize Google Maps Polygon Using Ramer Douglas Peucker Algorithm | Vue.js
  • Build an iOS / iPhone home screen clone in Vue.js
  • Build a WhatsApp chat clone (interface) using Vue.js
  • Architect / structure a large scale Vue.js application | Example
  • Send email with Sendgrid in Vue.js / Nuxt.js

Recent Posts

  • How to store and load large-scale Geolocation data using IndexedDB?
  • Check if element contains a class name in Vue 3 Composition API | Example
  • Show the position of an element in Vue 3 Composition API | Example
  • How to render components dynamically in Vue 3 Composition API | Example
  • Best Vue.js UI libraries in 2023 – A comprehensive analysis
  • How to update a part of an object in React.js using useState hook | Example
  • Call parent component function from child component local function in React.js | Example
  • Call function in parent component from child component in React.js | Example
  • Different ways to pass props to components in React.js | Examples
  • How to bind CSS styles from an object in React | Example

Looking for something?

  • About us
  • Contact us
  • Privacy policy

Have something to say?

Drop us a mail at admin@nightprogrammer.com

Night Programmer Logo

made with ❤ and coffee