Can props be utilized within a computed property in an alternative manner?
Upon attempting this, it seems to add the class 'foo' (the props name) instead of the intended 'fa-foo' (or a different value if props were configured).
If I directly bind one of them in the markup, both options work.
props: {
foo: {
type: String,
default: 'fa-foo'
}
},
computed: {
classObject: function () {
return {
foo: true,
'text-danger': true
}
}
}