Skip to content

migrate from v-repeat to v-for while using partial inside the loop #1363

@vprimachenko

Description

@vprimachenko

I have trouble migrating following code to Vue 1.0. I use 1.0.0-alpha.6 as a migration path.

<label v-repeat="param in params">
    {{$key}} : <partial :name="'editor-'+param.type"></partial>
</label>

Vue setup

new Vue({
    el: 'body',
    data: {
        params: {
            paramA : {
                type: 'number',
                value: 42
            }
        },
    },
    partials: {
        'editor-number': '<input v-model="param.value" type="number">'
    }
})

as the v-for version throws warnings and an error i believe this to be a bug

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