Receive data variable on another component


I have a button that when i click i get an API response and put on data variable.

I need to click on button and render my api data in another component (example: list)

How i do this?

Hello Leonardo,

If I understand you correctly, you want to have a button click cause an API call, and that API call to populate a data variable, and for a list component on that same page to be updated/populated with the data returned by the API.

Simple, just bind the list component’s repeat with to the data variable.

Let me know if the docs don’t guide you enough or you’re having a different issue: Binding data - Composer