Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49258

Ionic V4 Call parent function from containing component

$
0
0

In the V4 app, there’s a parent component that includes a child component (a toolbar that sticks to the top). There’s a button in the child component that, when pressed, should scroll the screen to the top. How can that be done?
I thought of having a ScrollToTop() function, but I think it needs to be in the parent container, so the child component needs to call it. Is there a way to do so?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49258

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>