Files
test-repo/changelog_unreleased/angular/16862.md
T

437 B

Support Angular 19 (#16862 by @fisker)

Angular 19 added support for typeof keyword in template expressions.

<!-- Input -->
<div>{{ typeof
      x ===
    'object' ? 'Y' : 'N'}}</div>

<!-- Prettier stable -->
<div>
  {{ typeof
      x ===
    'object' ? 'Y' : 'N'}}
</div>

// Prettier main
<div>{{ typeof x === "object" ? "Y" : "N" }}</div>