Looking to scroll to page sections when user clicks using scrollIntoView in a modal with dynamic content.
I've tried using ViewChild, event emitting, and ngAfterViewChecked but no luck.
Looking to scroll to page sections when user clicks using scrollIntoView in a modal with dynamic content.
I've tried using ViewChild, event emitting, and ngAfterViewChecked but no luck.
Copyright © 2021 Jogjafile Inc.
i had same problem. for me the solution was change (click) events to onclick and write typescript scroll functions in script tag.
https://stackblitz.com/edit/ng-bootstrap-modals-6jtnrm?file=src%2Findex.html,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fmodal-container%2Fmodal-container.component.ts