Can you guide me on the correct usage of the method isValidEmail
in compA.vue
and other potential compB.vue
?
The following method does not seem to be effective for me:
<template>
<div></div>
</template>
<script>
export default {
name: 'Validators',
methods: {
isValidEmail(someEmail) {
//Omitted
},
}
}
</script>
<template>
<div>{{isValidEmail('<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d6a2b3a5a2e796b1bbb7bfbaf8b5b9bb">[email protected]</a>')}}</div>
</template>
<script>
import Validators from 'validators.vue'
export default {
name: 'CompA',
components: {
'validators': Validators
},
}
</script>