The toggle problem need to be solved. First of all my stackblitz code is here with an example.
https://stackblitz.com/edit/toggle-problem?file=src%2Fapp%2Fapp.compone