You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding property/event bindings to ng-content should error #24259
Adding property/event bindings to <ng-content> (attributes that are not explicitly supported APIs) currently no-op. They should be an error, as the attributes will be completely lost.
changed the title [-]Adding unsupported attributes to ng-content should error[/-][+]Adding property/event bindings to ng-content should error[/+]on Jun 1, 2018
Adding an attribute could be used for re-projection: <ng-content selector="a[title]" someRandomName></ng-content> and then <ng-content selector="[someRandomName]"></ng-content>
Activity
[-]Adding unsupported attributes to ng-content should error[/-][+]Adding property/event bindings to ng-content should error[/+]vicb commentedon Jun 1, 2018
Adding an attribute could be used for re-projection:
<ng-content selector="a[title]" someRandomName></ng-content>and then<ng-content selector="[someRandomName]"></ng-content>fix(compiler): report error for property/event bindings on ng-content
JeanMeche commentedon Aug 16, 2026
Closing as we've suggested this could be handled by a linting rule: #68910
angular-automatic-lock-bot commentedon Oct 20, 2026
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.