Here's my app: https://stackblitz.com/edit/angular-ivy-s6usrl?file=src%2Fapp%2Fnotes%2Fsingle-note%2Fsingle-note.component.ts
As you can see I try to delete item but it doesn't work, can sb look at that? Thanks alot!
Here's my app: https://stackblitz.com/edit/angular-ivy-s6usrl?file=src%2Fapp%2Fnotes%2Fsingle-note%2Fsingle-note.component.ts
As you can see I try to delete item but it doesn't work, can sb look at that? Thanks alot!
For further actions, you may consider blocking this person and/or reporting abuse
Sylvain Dethier -
Yu Hamada -
Leonardo Montini -
Ivor -
Top comments (5)
You need Two-way-binding between components:
stackoverflow.com/a/36247095
Although I would probably create a service and put the array and all the methods (for create, delete, update etc) there and in the component just use that service.
Did you know now how to solve problem with id when i delete all notes and try to add a new one?
This works:
Although I'm no expert XD. Seems logical you can't reverse an empty array.
Thank you so much!
Thanks a lot!