Skip to content

2.0 docs - better "dynamic attributes" example in Introduction #449

Closed
@davestewart

Description

@davestewart

I just checked out the new v2.0 Introduction, and thought I would comment on the dynamic attribute:

The entire example feels really contrived in my opinion:

  • I can't think of an everyday situation where I would want a dynamic id
  • I can't think of a single time I've used the more verbose 'v-bind' syntax; it looks kludgy in its longhand form, and the shorthand version would look more accessible for new users
  • I had no idea what "Inspect me" meant for a good 20 - 30 seconds
  • When I did, you have to use the Developer Tools to work out what's changed

Anything other than id would be more intuitive as the 3rd example on the page, such as class, title, href or src - all immediately visible on the page!

Just my 2c; id is just a recipe for confusion.

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