79793678

Date: 2025-10-18 09:43:56
Score: 0.5
Natty:
Report link

Consider using afterNextRender:

afterNextRender(
  () => {
    this.foo();
  },
  { injector: this.injector }
);

"Register callbacks to be invoked the next time the application finishes rendering..."
https://angular.dev/api/core/afterNextRender

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: GROL COON