Skip to content
Advertisement

Why the vue-lang do not work with filter?

I using vue-lang. It works, but not completely

ISSUE

in the JSON file there is an example of:

JavaScript

and then this code as a filter

JavaScript

But when I do it by example so there is an error here

JavaScript

MY FILES

main.js

JavaScript

lang/cs.json

JavaScript

views/login.vue

JavaScript

Still does not work. What am I doing wrong?

Advertisement

Answer

I’m not familiar with this particular library but the usual way to use a filter like this would be:

JavaScript

The documentation for that filter appears to be 3 years old so it may be out of date. The syntax for calling filters was changed some time ago: https://v2.vuejs.org/v2/guide/migration.html#Filter-Argument-Syntax-changed

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement