You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return statement is implied in all angular statements. So this is intentional, since we are not planning on adding return statement to our vocabulary.
I still disagree that it is the wrong thing to behave so much differently than vanilla HTML. FWIW, angular-dart gave up this feature angulardart/angular#387
The following link in HTML works
However, the following link in an Angular template does not.
Angular uses the last statement in the handler as the return value.
This behavior is undocumented, inconsistent with HTML, surprising, and I suspect usually unintentional. I would consider it a bug.
--
If you want to prevent default browser behavior, it should be
The text was updated successfully, but these errors were encountered: