<template>
    <div v-for="error of msg" :key="error.$uid" class="field-validation-error">
        <span>
            {{ error.$message }}
        </span>
    </div>
    <div v-if="backend"  class="field-validation-error">
        <span>
            {{ backend[0] }}
        </span>
    </div>
</template>
<script>
export default {
    name: 'Error',
    props: {
        msg: Array|String,
        backend:Array
    },
    mounted() {
       // console.log(this.props.msg)
    },

}
</script>
