Answer the question
In order to leave comments, you need to log in
How to change the value of a variable in vue js depending on the URL?
Hello everyone, can you please tell me how to change the data in a variable depending on the URL?
That is, if the address is: site.com in the {{ price }} variable, output 100
If the address is site.com?promo=50% , output 50 in the variable
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question