Hi,
I’m, as the title says, trying to pass a parameter in this line of HTML:
<div view="button" label="1" autowidth="true" align="center" click="addDriverCodeChar(1)" hotkey="1"></div>
in the controller I have this function in the scope ($scope.addDriverCodeChar = addDriverCodeChar;). If i dont pass the parameter:
click="addDriverCodeChar"
it works, but the function is declared like this:
function addDriverCodeCharacter(value) {
$$("driverCodeTextBox").setValue($$("driverCodeTextBox").value + value);
}
So, when i try to pass the parameter, I get this error in the browsers console:
VM4750:1 Uncaught ReferenceError: addDriverCodeCharacter
is not defined
Can you plz tip me how to pass a parameter via HTML markup?
Thank you!