You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to compute the value, converting it to a Number type.
Number(variable);
I recommend not using parseInt as it causes a Maximum call stack size exceeded error, probably due to some bug in the way Polymer implemented the computation.
You also forgot this: 👎 inputValue::input within curly braces 👍 {{inputValue::input}} , I guess, as you said you know the type of your input value, you didn't write that in your issue.
Here is a working example: http://jsbin.com/cowoha/1/edit
I made a mistake on this issue, but my code are right 😓.
thanks for you .
this computed are pretty good.
sjmiles
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?
Jun 12, 2015
I define a properties, type of 'Number':
I set the element Attribute with this properties:
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!
The text was updated successfully, but these errors were encountered: