Quote the filter that comes with vue to report an error, such as currency reporting an error: Failed to resolve filter: currency.

quote the filter that comes with vue to report an error, such as currency error report: Failed to resolve filter: currency

related codes

< style rel= "stylesheet/scss" lang= "css" >

< / style >

< template >

<div>
    <header></header>
    

{{message | currency}}

</div>

< / template >

< script type= "text/ecmascript-6" >

export default {
    data() {
        return {
            message: 1323
        }
    },
    filters: {
    },
    created() {
    },
    methods: {}
};

< / script >

Jul.20,2021

there is no filter after vue2.X, and you must define it yourself. ide/filters.html" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.

Menu