0👍
you cant use the filters in that way, you can use the filter in this way:
in the html : {{ prop | filter}}
in js : this.$options.filters.yourFilter(this.prop);
in html prop : :text=”this.$options.yourFilter(prop);”
- [Vuejs]-Function assigned to Vue.prototype returns unresolved Promise
- [Vuejs]-Dynamic replace a part of a string with Vue
Source:stackexchange.com