docs: fix property wrong usage inside afterNextRender in lifecycle.md (#59521)

PR Close #59521
This commit is contained in:
Abdul Wahab 2025-01-15 01:20:45 +05:00 committed by kirjs
parent 5a2d0ed541
commit 601994d842

View file

@ -261,7 +261,7 @@ export class UserProfile {
// Use the `Write` phase to write to a geometric property.
write: () => {
const padding = computePadding();
const changed = padding !== prevPadding;
const changed = padding !== this.prevPadding;
if (changed) {
nativeElement.style.padding = padding;
}