Drew 👾
banner
mrbobdaisy.bsky.social
Drew 👾
@mrbobdaisy.bsky.social
Developer, hip-hop enthusiast, scotch drinker
Gotcha, yeah this is a good use of v-bind then!

Alternatively though, you *could* in this example just check if target isn’t blank instead of checking a few values. That kinda depends on data fetching and if there’s a chance someone puts an invalid target value in the component though.
November 14, 2024 at 3:30 PM
Yeah in that case, that is a good use case! Though for ADA reasons, I would suggest links always having a target, even if it’s just set to _self
November 14, 2024 at 3:24 PM
Why not just bind the prop to :target itself?
November 14, 2024 at 2:27 PM