I have HTML tags that have ng-clicks and ng-ifs. Inside the corresponding expressions, I make function calls and pass parameters, some of which are literals (mostly just true or false). So I would like to add a comment as to what literal means, but angular does not seem to be able to parse this correctly. (I understand that passing literals is not a bright idea, but I still would like to know the answer)
<button class='someclass' ng-click='somefunction(val1, val2, true /* explanation for literal */)' > </button>
How to add comments to angular expressions?
source share