Solved! Go to Solution.
tags when posting code snippets. I've also seen others ask you to do the same, yet you still do not comply.
var toc = new agsjs.dijit.TOC({
map: map,
layerInfos: [{
layer: operational,
title: "Operational Layers",
noLegend:true
},{
layer: basemap,
title:'Base Map',
noLayers: true
}]
}, 'tocDiv');