If I have a component bar() can I nest them in a parent component by creating them in the parent constructor and then loop through them using their template ?
If I do something like below if just displays [object Object]
Ie something like
class bar() {
constructor(some_arg) {
self.some_arg = some_arg;
}
}
bar.html
<template>
${some_arg}
</template>
class Foo() {
constructor(some_arg) {
this.bars.push(new Bar("Arg"));
}
}
foo.html
<div repeat.for="b of bars">${b}</div> // How do I display bar template here ?