Ractive js 0.10 index from context

38 Views Asked by At

I'm upgrading an app from 0.7 and in an event I had access to the current stack of indexes:

event.index.myIndex

now instead of event I have context, is there an analogue of this or do I need to explicitly pass @index?

1

There are 1 best solutions below

0
kouts On BEST ANSWER

What you can do is get the index from context with ctx.get('@index')