Skip to content

Struggling with x-class binding #1

Closed

Description

@jackmcdade

First of all, I love this. This declarative approach is why I fell in love with Vue.js in the first place, and the bigger and more robust Vue gets, the less I want to use it on small projects.

Okay so I'm trying to make buttons that hide themselves when you click them, and I must be doing something simple and dumb, but I can't get it to work. Here's my fiddle: https://jsfiddle.net/c6at2e7z/

Any ideas?

Activity

  1. dardanmulaj commented on Nov 28, 2019

    @dardanmulaj

    Just like with the "Here I am" element, you have to do x-bind:class rather than x-class.

    https://jsfiddle.net/65fvkyeo/

  2. jackmcdade commented on Nov 28, 2019

    @jackmcdade
    Author

    I knew I did something noobish and dumb 😆 thanks! Could have sworn I was just copying and pasting from the docs, but clearly not.

  3. added a commit that references this issue on Dec 22, 2019
  4. added a commit that references this issue on Jan 9, 2020
  5. added a commit that references this issue on Feb 15, 2020
  6. added a commit that references this issue on Jul 16, 2020
  7. added a commit that references this issue on Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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