Skip to content
Advertisement

Tag: laravel

Giving a value to a href in a anchor tag with Vue

Sounds dumb but I can’t find a way to pass a variable data defined in the href: ComponentFile.vue I tried all of those: What is the correct way? Thanks! Answer You’ve defined data() as a function, but it isn’t returning anything. It should return an object with the data like so: Then either of these will work: EDIT FOR VUE

Advertisement