Skip to content

Comments

feat(compiler): Support comments in html element.#67179

Draft
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:comments-html
Draft

feat(compiler): Support comments in html element.#67179
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:comments-html

Conversation

@JeanMeche
Copy link
Member

@JeanMeche JeanMeche commented Feb 20, 2026

(It's a WIP we haven't discussed, don't get too excited 🙂)

<div
  // comment 0
  /* comment 1 */
  attr1="value1"
  /*
     comment 2
     spanning multiple lines
  */
  attr2="value2"
></div>

@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: compiler Issues related to `ngc`, Angular's template compiler labels Feb 20, 2026
@ngbot ngbot bot added this to the Backlog milestone Feb 20, 2026
@JeanMeche JeanMeche force-pushed the comments-html branch 2 times, most recently from 98bb5e0 to f8ea349 Compare February 20, 2026 17:19
```
      <div
        // comment 0
        /* comment 1 */
        attr1="value1"
        /*
           comment 2
           spanning multiple lines
        */
        attr2="value2"
      ></div>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compiler Issues related to `ngc`, Angular's template compiler detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant