Skip to content

Default value of paramAttributes options #136

Closed
@bpierre

Description

@bpierre

If a paramAttributes option does not exists on the element, its default value is 0:

http://jsfiddle.net/H5BX5/

I think it should be null, it would allow to easily define default options:

Vue.component({
    paramAttributes: ['bar'],
    created: function() {
        if (this.bar === null) this.bar = 'default value'
    }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions