The key is to declare type of the prop as Boolean:
props: {
primary: Boolean
}
Then specifying only attribute name makes its value set to true.
Working JSFiddle: https://jsfiddle.net/LukaszWiktor/gfa7gkdb/
The key is to declare type of the prop as Boolean:
props: {
primary: Boolean
}
Then specifying only attribute name makes its value set to true.
Working JSFiddle: https://jsfiddle.net/LukaszWiktor/gfa7gkdb/