Skip to content

can I two way binding a properties type of 'Number' to attribute? #1856

Description

@w88975

I define a properties, type of 'Number':

properties: {
            inputValue: {
            type: Number,
            notify: true,
            value: 0,
            observer: '_inputValueChanged',
        },
}

I set the element Attribute with this properties:

<input type="number" value="{{inputValue::input}}">

I input some number in this element,I got this inputValue, output a 'string' type value?

how can I get a 'number' type value, and how can I set the tow way binding value type of 'number'?

thanks!

Activity

  1. w88975 commented on Jun 12, 2015

    @w88975
    Author

    @peduxe

    I made a mistake on this issue, but my code are right 😓.

    thanks for you .

    this computed are pretty good.

  2. changed the title [-]can I tow way binding a properties type of 'Number' to attribute?[/-] [+]can I two way binding a properties type of 'Number' to attribute?[/+] on Jun 12, 2015
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