-
-
Save uno-de-piera/3ca4413f01893a0ffd8dd7439fa97ea2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.filter('booleanToString', function (boolean, ifTrue, ifFalse) { | |
return boolean ? ifTrue : ifFalse; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.$options.filters.booleanToString(user.active, 'Sí', 'No') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ user.active | booleanToString('Sí', 'No') }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment