Javascript – Updating checkbox's checked status from parent – Angular
I'm trying to create a reusable switcher component whose state won't be changed immediately when clicked, but after an API call is made in parent component - if there is no error, the state will be changed, while when there…