I'm reviewing some code and I've run across an instance where the developer has added a placeholder for an Angular component.
<div>
<!someAngularComponent/>
</div>
This behaves exactly as if <someAngularComponent/>
were wrapped in the standard <!-- -->
structure for comments.
Putting a single !
at the beginning of the tag seems to have some special meaning - see https://stackoverflow.com/a/16324326/217490. Is this usage a valid way to comment out elements, or is it working mostly by side effect?