this.sources = [
{title: new ReactiveVar(), value: new ReactiveVar()},
{title: new ReactiveVar(), value: new ReactiveVar()},
{title: new ReactiveVar(), value: new ReactiveVar()},
// TODO: More sources
]
Example of access source one:
var source1 = this.sources[0]
var title = source1.title.get()
var value = source1.value.get()
At the risk of overloading your options, I’ve got to say, why have a arbitrary limit of 10 sources? And this is something you can get for free (free as in learn autoforms and it already does it for you).
Check out: http://autoform.meteor.com/quickform, the ‘Array of object fields’ allows you to add/remove as many sources as you want and you just need to specify the schema and where to put the form.
There is quite a bit of reading to understand how it works though, in the long run it’s very much worth it as it will apply to alot of common forms.