python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Vue 3 Composition API - TypeError: Cannot read properties of null (reading 'style')
I am currently learning Vue 3 composition api and using template refs to access the DOM element and learning to set texts and styles inside using script setup.
Here, I am trying to style the title in ...
liner183
Votes: 0
Answers: 2
composition api computed return value in setup function before setup return value
I am trying to edit a post using state manager vuex, in vue3 using compostion API and here is my code:
<template>
<div class="container py-5">
<h3 class="mb-5 borde...
sara
Votes: 0
Answers: 1
How to get getBoundingClientRect in Vue Composition api?
I am aware that in using the options api in Vue, we can access template refs to access getBoundingClientRect():
const rect = this.$refs.image.$el.getBoundingClientRect();
But I am trying to access ge...
liner183
Votes: 0
Answers: 1
Vue 3 Composition API - Object is possibly 'null'
I am using Vue 3 Composition api with Typescript to implement pinch zoom using HammerJS package.
I am trying to follow a working example written in JavaScript from CodePen: https://codepen.io/bakho/de...
liner183
Votes: 0
Answers: 2