22 lines
437 B
Markdown
22 lines
437 B
Markdown
#### Support Angular 19 (#16862 by @fisker)
|
|
|
|
Angular 19 added [support for `typeof` keyword in template expressions](https://github.com/angular/angular/pull/58183).
|
|
|
|
<!-- prettier-ignore -->
|
|
```html
|
|
<!-- 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>
|
|
```
|