Is it possible to use any expression in an ngClick directive for evaluation?
Not just any expression. You can only use an angular expression as specified in this guide:
Context: JavaScript expressions are evaluated against the global window. In Angular, expressions are evaluated against a scope object.
Forgiving: Unlike JavaScript, Angular's expression evaluation is forgiving to undefined and null properties.
No Control Flow Statements: Angular does not support conditionals, loops, or exceptions in expressions.
No Function Declarations: Functions cannot be declared within an Angular expression, even inside ng-init directives.
No RegExp Creation With Literal Notation: Regular expressions cannot be created within an Angular expression.
No Comma And Void Operators: Commas (,) and void cannot be used in Angular expressions.
Filters: Filters can be used within expressions to format data before displaying it.
While control flow statements are not allowed, you can utilize the ternary operator.
The error in your code ng-click="numOthersAttending++"
is due to using unsupported syntax.