Update Footer title of Slidebox inside dynamic Modal

Hi,
I have a slidebox inside a Modal and the footer title of Slides in slidebox
updates as the slides are being changed. This works perfect as
seen on codepen:

codepen

How can I achieve the same in different Modal which are
opened dynamically from items in a list? Basically each time Modal is called from different items in the list- -slidebox in Modal should have different data as initialised in the controller. I have the basic idea of multi-dimensional array in controller but not getting it work on Ionic.

Modal 1 has slidebox with vales A,B,C
Modal 2 has slidebox with values D,E,F

This is the basic idea.

Can someone help me please.

Thanks in advance! :smile:

I edited my codepen, here’s the result:

Thanks again :smile: