79315619

Date: 2024-12-29 12:57:23
Score: 5
Natty:
Report link

Thanks to Pieterjan’s reply, I tried implementing two-way binding. However, to fix the issue, I had to create a new component with the same logic. Here’s the change I made :

  @Output() page: EventEmitter<number> = new EventEmitter<number>();

With this:

  @Output() indexChange: EventEmitter<number> = new EventEmitter<number>();

Despite this change, it didn’t work in the old component, and I had to create a new pagination component.

I’m not sure why this change didn’t take effect in the existing component. Does anyone know why this might happen?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pawan yadav