I want to create Tree View component in Angular with checkbox. Please find my code at -
https://stackblitz.com/edit/angular-qvzr8c
Here I am able to render tree View on UI. But want to implement functionality -
- When Parent checkbox is checked then all its child check box should be checked automatically.
- When all child checkboxes checked then parent node chekbox should automatically selected.
- At the end want list of all selected checkboxes.
Here how can I set model to checkboxes and achieve above functionality.