Skip to content

Problem with literal object props in template #4060

Closed
@Katherina-Miao

Description

@Katherina-Miao

Vue.js version

2.0.3

Reproduction Link

http://codepen.io/KathyMiao/pen/XjLJxE?editors=1010

Steps to reproduce

When the template has literal object props, it may cause template re-render.

What is Expected?

number:1

What is actually happening?

number:100

This usage is very common with vue 1.x. However, it causes problem in vue 2.x with no warning and recommendation. It is not easy to debug and find out the cause. Warning message and usage description in vue guide will be helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions