The following problem occurs only in version 1.7.0, no in 1.6.0.
My component has a method : * exp(String expression, *[] ...params).
The method takes as first parameter a string expression, and datas for the followings.
Exemple : [[exp("$0 ? $1 : $2", condition, value1, value2)]] will be executed like this.condition ? this.value1 : this.value2.
I use this method decide which css class to apply to my elements in the shadow DOM, like:
<my-button class$="[[exp('$0 ? \'error\' : \'default\'', invalid)]]">Click</my-button>.
But since polymer-cli 1.7.0, this throw an error [polymer-expression-parse-error] - Unexpected token, expected ",".
Versions & Environment
Polymer CLI: 1.7.0
node: 9.11.1
Operating System: macOS High Sierra
Steps to Reproduce
Try to data bind a function with multiple parameters in a css class.
Expected Results
No error is throw
Actual Results
Throw an error [polymer-expression-parse-error] - Unexpected token, expected ","
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
The following problem occurs only in version 1.7.0, no in 1.6.0. My component has a method :
* exp(String expression, *[] ...params)
. The method takes as first parameter a string expression, and datas for the followings. Exemple :[[exp("$0 ? $1 : $2", condition, value1, value2)]]
will be executed likethis.condition ? this.value1 : this.value2
. I use this method decide which css class to apply to my elements in the shadow DOM, like:<my-button class$="[[exp('$0 ? \'error\' : \'default\'', invalid)]]">Click</my-button>
. But since polymer-cli 1.7.0, this throw an error[polymer-expression-parse-error] - Unexpected token, expected ","
.Versions & Environment
Steps to Reproduce
Try to data bind a function with multiple parameters in a css class.
Expected Results
No error is throw
Actual Results
Throw an error
[polymer-expression-parse-error] - Unexpected token, expected ","