How to Watch Props Change with Vue Composition API / Vue 3?

If you take a look at watch typing here it’s clear the first argument of watch can be array, function or Ref<T> props passed to setup function is reactive object (made probably by readonly(reactive()), it’s properties are getters. So what you doing is passing the value of the getter as the 1st argument of watch … Read more

Using Bootstrap 5 with Vue 3

Bootstrap 5 no longer needs jQuery so it’s easier to use with Vue, and no longer requires a library like bootstrap-vue. Install bootstrap as you would any other JS module in the Vue project using npm install or by adding it to the package.json… npm install –save bootstrap npm install –save @popperjs/core Next, add the … Read more

ref vs reactive in Vue 3?

Key Points reactive() only takes objects, NOT JS primitives (String, Boolean, Number, BigInt, Symbol, null, undefined) ref() is calling reactive() behind the scenes Since reactive() works for objects and ref() calls reactive(), objects work for both BUT, ref() has a .value property for reassigning, reactive() does not have this and therefore CANNOT be reassigned Use … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)