Skip to content

Commit

Permalink
refactor(common): update the NgOptimizedImage message to use @if in…
Browse files Browse the repository at this point in the history
…stead of `*ngIf` (#59131)

This commit updates an error message to mention `@if` rather than the `*ngIf` directive.
PR Close #59131
  • Loading branch information
tidusjar authored and AndrewKushnir committed Dec 12, 2024
1 parent c61ad65 commit e3bb6a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ function postInitInputChangeError(dir: NgOptimizedImage, inputName: string): {}
`${imgDirectiveDetails(dir.ngSrc)} \`${inputName}\` was updated after initialization. ` +
`The NgOptimizedImage directive will not react to this input change. ${reason} ` +
`To fix this, either switch \`${inputName}\` to a static value ` +
`or wrap the image element in an *ngIf that is gated on the necessary value.`,
`or wrap the image element in an @if that is gated on the necessary value.`,
);
}

Expand Down

0 comments on commit e3bb6a0

Please sign in to comment.