Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Aem responsive grid in angualr spa


Level 3

I am trying to develop a container component in angular spa


I have tried including <aem-responsovegrid> inside html to add a layout container


But it is not working and throwing an error ngmodule is not defined.


Could please help with what needs to add as a dependency in ts files to make it work



3 Replies


Level 3

Hi @arunpatidar ,

Thanks for the input . I have added the dependency in my package.json file.
I am able to render the aem-container on the page, but couldnt get the layout on the page.

below is the inspect element rendered on the page,
<aem-container  data-cq-data-path="" class="aem-container"><!----><!----></aem-container>

In angular html file i have used <aem-container></aem-container>

Do i need to pass any attributes to above snippet?