-1👍
✅
Href doesnt exist for buttons.
What you can do is to bind it to a @click
and create a method where you use window.location = URL
1👍
The <button>
element does not have an href
attribute and will not function as a link.
You should instead use an <a>
with an appropriate button style.
Source:stackexchange.com