I have created a component, I can see the content rendered from that component in edit mode and by removing the editor.html. but when i am trying to see in View As Published mode by adding ?wcmmode=disabled in the url, it does not show my component on the page
My component code:
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html">
<sly data-sly-call="${clientlib.all @ categories='rsnipLegalDisclousure'}">
</sly>
</sly>
<div data-sly-use.myDataModel="com.site.myproj.core.models.RSNIPLegalDisclosureModel">
<div class="disclosure-list" data-disclosureList="${myDataModel.disclosureList}">
<table>
<tbody id="disclosure-tbody">
<tbody>
</table>
</div>
</div>
<sly data-sly-use.template="core/wcm/components/commons/v1/templates.html"
data-sly-call="${template.placeholder @ isEmpty=!exists, classAppend='cmp-rsnipLegalDisclousure'}">
</sly>


How can i fix this issue so that i can see the content in all the modes ?