I have the following custom directive in vue
<h1 v-role="'admin'">Your Dashboard</h1>
It works fine but would be cleaner without the single quotes. Is this possible?
<h1 v-role="admin">Your Dashboard</h1>
I have the following custom directive in vue
<h1 v-role="'admin'">Your Dashboard</h1>
It works fine but would be cleaner without the single quotes. Is this possible?
<h1 v-role="admin">Your Dashboard</h1>
© 2022 - 2024 — McMap. All rights reserved.
<h1 :v-role="admin">Your Dashboard</h1>
– Beulahbeuthel<h1 v-role="ROLES.ADMIN"> Your Dashboard</h1>
. However this is question of preference. – Stylographicbinding.expression
instead ofbinding.value
. Hope it helps. – Newly