Here is some code I have:
postCreate: function() {
this.items.forEach(lang.hitch(this, function(item) {
new SideNavigationItem({
name: item.name
}, this.container);
}));
}
This code snippet adds a new list item (li) to a unordered list (ul). The ul template has an attach point where I want to append all the li items, but currently, each iteration replaces the content inside the attach point with the next li being created.
Any suggestions on how I can accomplish this without replacing the existing content?