Skip to content
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
@caitp

Description

@caitp

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions