Vue.js Components Inline registration


Example

You can extend and register a component in one step:

Vue.component('custom-component', {
    template: '<div>A custom component!</div>'
})

Also when the component is registered locally:

var Parent = Vue.extend({
    components: {
        'custom-component': {
            template: '<div>A custom component!</div>'
        }
    }
})