angular/packages/compiler/test/render3
Miles Malerba 0361c2d81f feat(compiler): support void operator in templates (#59894)
Add support for the `void` operator in templates and host bindings.

This is useful when binding a listener that may return `false` and
unintentionally prevent the default event behavior.

Ex:
```
@Directive({
  host: { '(mousedown)': 'void handleMousedown()' }
})
```

BREAKING CHANGE: `void` in an expression now refers to the operator

Previously an expression in the template like `{{void}}` referred to a
property on the component class. After this change it now refers to the
`void` operator, which would make the above example invalid. If you have
existing expressions that need to refer to a property named `void`,
change the expression to use `this.void` instead: `{{this.void}}`.

PR Close #59894
2025-02-25 11:03:37 -05:00
..
util feat(compiler): support void operator in templates (#59894) 2025-02-25 11:03:37 -05:00
view fix(compiler): this.a should always refer to class property a (#55183) 2024-10-08 16:02:18 +00:00
BUILD.bazel build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
r3_ast_absolute_span_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_ast_spans_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
r3_template_transform_spec.ts fix(compiler): allow $any in two-way bindings (#59362) 2025-01-06 17:25:25 +00:00
README.md feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
style_parser_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00

Tests in this directory are excluded from running in the browser and only run in node.