When I search for something I came across this post
Here, something
, I believe it is component
, is defined as below.
export default {
name: 'app',
methods: {
testFunction: function (event) {
console.log('test clicked')
}
},
components: {
Test
}
}
As per the documentation, I came across this
import BaseButton from './BaseButton.vue'
import BaseIcon from './BaseIcon.vue'
import BaseInput from './BaseInput.vue'
export default {
components: {
BaseButton,
BaseIcon,
BaseInput
}
}
I really not sure, whether app
is a component which contains Test
. Is it the component definition in export
? How do we understand that is a component from vue code?
Is it only by the below ways?
- Vue.component
- components in Vue instance
- Not sure - the
export default
way?
I understand that I sound different because it is Javascript. Could someone help me with this?