This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
multiElement notation does not work for comments #8768
Closed
Description
Based on #8721 (comment) --- there may be use cases for doing something like
<!-- directive: ng-if-start someCondition -->
<div ng-if="someCondition.someOtherCondition1">
<img src="fancycontent.jpeg">
</div>
<div ng-if="someCondition.someOtherCondition2">
<img src="otherfancycontent.jpeg">
</div>
<!-- directive: ng-if-end -->
--- Such that the wrapper directives aren't actually included in the DOM.
It would be a bit of a refactoring of the compiler, and usually you'd be crazy to use comment directives, but it doesn't seem totally unreasonable to me.
Thoughts? Feelings?