mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Previously, property bindings on `<ng-template>` that were not claimed by a matched directive were silently ignored by the type checker. This was inconsistent with how bindings on regular elements are handled. This check is added behind a temporary compiler flag `checkTypeOfNgTemplateBindings` which will be removed in the next breaking change window. When the flag is enabled, the type checker will report an error for any property binding on an `<ng-template>` that is not matched by a directive. Fixes #69322 Co-authored-by: Matthieu Riegler <[email protected]>