Topic: How to get the chart instance in Angular MDB Charts?
Kristian Mark Surat asked 3 years ago
Expected behavior Getting the chart instance in Angular using ViewChild. Actual behavior It is not working, the returned variable is undefined. Resources (screenshots, code snippets etc.)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 1.0.0-beta5
- Device: PC
- Browser: Chrome
- OS: Linux
- Provided sample code: No
- Provided link: No
Arkadiusz Idzikowski staff commented 3 years ago
@Kristian Mark Surat Did you try to access the directive instance in
ngAfterViewInit
hook? Please provide some example HTML/TS code so we can reproduce this problem on our end.