diff --git a/packages/common/src/directives/ng_optimized_image/ng_optimized_image.ts b/packages/common/src/directives/ng_optimized_image/ng_optimized_image.ts index 78bcab950d3..6a822176371 100644 --- a/packages/common/src/directives/ng_optimized_image/ng_optimized_image.ts +++ b/packages/common/src/directives/ng_optimized_image/ng_optimized_image.ts @@ -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.`, ); }