When it comes to obtaining the numeric value of a variable like $event
, typically I would use the following syntax:
<ax-text-box (valueChange)='documentSearchItem.fromPrice=(+$event)'></ax-text-box>
To achieve this, I simply add a +
.
But what about if I want to obtain the string value of a variable in a similarly straightforward way?
Please note that I prefer not to use a method and would like to be able to implement this directly in HTML templates.