1<script src="https://unpkg.com/vue"></script>
2
3<div id="app">
4 <my-comp my-attr="Any value"></my-comp>
5</div>
6
7<script>
8 Vue.component('my-comp', {
9 template: '<div>aaa</div>',
10 created: function () {
11 console.log(this.$attrs['my-attr']) // And here is - in $attrs object
12 }
13 })
14
15 new Vue({
16 el: '#app'
17 })
18</script>