-
-
Save MohitTilwani15/121cdc335fcc2403e83f01ce14cc9b69 to your computer and use it in GitHub Desktop.
debugger in Vuejs, used in for loop in template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.component('debug', { | |
props: { | |
item: { | |
type: Object, | |
default() { | |
return {}; | |
}, | |
}, | |
}, | |
created() { | |
console.log('debug', this.item); | |
}, | |
template: '<!-- debug -->', | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment