You have unnecessary braces. The latter expression is an object whereas the first is simply a ternary expression that returns a string.
:class="sportTypes.sports.indexOf(sport) > -1 ? 'is-primary' : 'is-outlined'"
You have unnecessary braces. The latter expression is an object whereas the first is simply a ternary expression that returns a string.
:class="sportTypes.sports.indexOf(sport) > -1 ? 'is-primary' : 'is-outlined'"