mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: fix property wrong usage inside afterNextRender in lifecycle.md (#59521)
PR Close #59521
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user