Skip to content

refactor(common): improve image directive typings#66850

Open
SkyZeroZx wants to merge 1 commit intoangular:mainfrom
SkyZeroZx:refactor/img-unsued
Open

refactor(common): improve image directive typings#66850
SkyZeroZx wants to merge 1 commit intoangular:mainfrom
SkyZeroZx:refactor/img-unsued

Conversation

@SkyZeroZx
Copy link
Contributor

Add image directive typings to improve type safety and removes an unused parameter from the observer registration.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

I don't think it's considered a breaking change since we treat the directives as Final Class

@pullapprove pullapprove bot requested a review from mmalerba January 30, 2026 20:03
@angular-robot angular-robot bot added the area: common Issues related to APIs in the @angular/common package label Jan 30, 2026
@ngbot ngbot bot added this to the Backlog milestone Jan 30, 2026
]);
}
if (changes['ngSrc'] && !changes['ngSrc'].isFirstChange()) {
if (changes.ngSrc && !changes.ngSrc.isFirstChange()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing these from quoted to unquoted reads likely breaks apps that are using the closure compiler

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Add image directive typings to improve type safety and removes an unused parameter from the observer registration.
@SkyZeroZx SkyZeroZx force-pushed the refactor/img-unsued branch from a575a3d to 14803b0 Compare February 2, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: common Issues related to APIs in the @angular/common package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants