Relative Content

Tag Archive for vuejs3

Vue3: Ignore parts of template

I am migrating a large application from Vue2 to Vue3. On some pages, structured schema.org data in JSON-LD format is delivered from the server to the template. While Vue2 was not bothered by this (no JS code is executed), Vue3 now throws a warning:

How to get selected option as default?

I am trying to have the selectedOption as default. But its not working… I also tried to do a const selectedOption = ‘Select an option’ but that does not work either. I can see the tag but it’s empty. What am I doing wrong?

Vue3. Getting child component data when sending to server

I have a parent and child component. When I hit the button, I want to send parent and child component data to server. I know there are a couple of ways to get the data from child. $ref and $emit. Is there a nicer way to get child component data?