vendredi 26 juin 2015

Pass a string in function parameter

I try to call a function with a string as parameter

<input type="checkbox" value={{user.name}} id={{user.name}} ng-click="toggleSelection({{user.name}})">

but I have this error

Syntax Error: Token 'Marcus' is unexpected, expecting [)] at column 20 of the expression [toggleSelection(Julian Marcus)] starting at [Julian Marcus)].




Aucun commentaire:

Enregistrer un commentaire