These are chat archives for ractivejs/ractive

11th
Aug 2015
Caleb Hattingh
@cjrh
Aug 11 2015 00:10
Maybe silly question: if you have a repeated component instance in a template, how do you target it, e.g. with something like findComponent() or similar?
<div>
  <widget myattr="1" />
  <widget myattr="2" />
</div>
Specifying an id attribute just goes into the data of the component obviously.
Caleb Hattingh
@cjrh
Aug 11 2015 05:18
I think I have figured out a solution, so never mind 👍
Cristian Pallarés
@skyrpex
Aug 11 2015 21:18
findAllComponents() so everybody knows