Skip to content
Advertisement

How go get value from Route Parameters and save it in Data in Nuxtjs

For Example I have this

JavaScript

This means whenever a user visits a URL like this

JavaScript

The user will not be shown a 404 page.

The value of serial and machine is dynamic and can be anything.

My question is there a way to take the values and store its data on mounted

e.g

JavaScript

Can I take the value and assign it to a my serial and email variables, maybe using this.serial

Advertisement

Answer

You could use computed property:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement