Component Variables In Collection List

Hi, I have a collection list nested in a collection list. Inside the parent list I’ve added a component that allows people to add to the children list. When they fill out the form in the component and hit submit, the API obviously needs to know what the parent item id is. How am I able to reference the ID inside the component?

For some reason I cant figure out how a component can reference anything outside of it.

You can make a property in the component called parentID and then be able to bind from the item.data the id

actually you just get current record like Luka said which will be the item id of the parent list! you dont even need to hustle too much with this is easy, just attach the itemid of the parent to the field that needs the id of parent in the children! voila!