mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: fix property wrong usage inside afterNextRender in lifecycle.md (#59521)
PR Close #59521
This commit is contained in:
parent
5a2d0ed541
commit
601994d842
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue