Topic: is it possible to reset Checkbox component?
Nate free asked 3 years ago
So I have several list style pages, each their own component. Each item in the list has a checkbox.
I have also made it so you can select all checkboxes in the list with the header checkbox. I also have buttons that show if one or more checkboxes are selected, so I have to be able to keep track of that.
Everything works great... except when I switch to a new page with a new list.
It seems to have checkbox objects from the previous page.
Is there a way to reset or reinitialize the Checkbox component when I initialize a new component with ngOnInit or ngAfterViewInit? Everything always seems to work fine on the first component.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 9.3.1
- Device: Desktop
- Browser: Chrome
- OS: OSX
- Provided sample code: No
- Provided link: No