This function is poorly documented, but when defining attributes in the Handlebars helper, you can either leave quotation marks to indicate that you want the attribute value to be a related variable, or you can add the suffix "Bind", and then use quotation marks with an expression similar to the one you would use with {{bind-attr}} .
So, in your case, the following should work:
{{input value=email type="text" placeholder="Enter email" classBinding="emailError:with-error :myClassName"}}
Note that instead of class=myBoundValues we use classBinding="myBoundValue" .
Josh padnick
source share