DEV Community

Discussion on: Simple state management in Angular with only Services and RxJS

Collapse
 
vladpavliuk profile image
Vlad

Yea, I completely agree, they are the same, I guess there is a real small advantage to use todo.id instead of $event - if we use todo.id we explicitly say that we wanna to use id property from list of todos, otherwise if we use $event we delegate the responsibility to the child component to use 'remove' event properly (pass the correct value).