Created
September 18, 2023 16:15
-
-
Save devknoll/9cb767d66cb85aa6b3868431f0a9b6ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({/* ... */}) | |
export class MyComponent { | |
constructor() { | |
afterRender(() => { | |
// Run after *each* render | |
}, {phase: AfterRenderPhase.Write}); | |
afterNextRender(() => { | |
// Run after the *next* render | |
}, {phase: AfterRenderPhase.Write}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment