Skip to content

option 'name' on component creation gives warning and doesn´t work #3472

@indus

Description

@indus

Vue.js version

2.0.0-rc.2

Reproduction Link

http://jsfiddle.net/af3cq646/1/

var CUSTOM = Vue.component('custom',{name:'custom'});
console.log(new CUSTOM());

Steps to reproduce

run fiddle and open console

What is Expected?

no warning and component showing up with the name 'custom'

What is actually happening?

warning "_[Vue warn]: options "name" can only be used as a component definition option, not during instance creation_" and component is named "VueComponent"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions