Origin of $log:
Vue.prototype.$log = console.log
Places to be banned:
<template>
<!-- Place 1 -->
<div @click="$log">
<!-- Place 2 -->
{{ $log }}
<!-- Place 3 -->
{{ $log('foo') }}
</div>
</template>
<script>
import Vue from 'vue'
// Place 4
Vue.prototype.$log('foo')
export default {
created() {
// Place 5
this.$log('foo')
},
}
</script>
Some additional information that might help:
$logas not allowed, not how to disable the call of that function. Am I understanding this correctly?