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.
i had same problem. for me the solution was change (click) events to onclick and write typescript scroll functions in script tag.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.