Skip to content
This repository was archived by the owner on May 3, 2018. It is now read-only.
This repository was archived by the owner on May 3, 2018. It is now read-only.

Directive to parse data attributes #27

@rafaelrinaldi

Description

@rafaelrinaldi

I use data attributes sometimes and it would be really helpful to have a directive that parse them and compute to $data. v-data, maybe?

<main id="app" data-foo="bar">My Application</main>
new Vue({
  el: '#app',
  ready: function() {
    console.log('Vue is awesome »', this.foo); // bar
  }
});

What do you guys think?

/ping @yyx990803

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