keenthemes / metronic-tailwind-html-integration

Metronic Tailwind CSS Integration Guides
MIT License
37 stars 32 forks source link

Dashboard issue with multiple imports on Angular #14

Closed Seanahamilton closed 3 months ago

Seanahamilton commented 3 months ago

Adding the following code to dashboard.component.html results in none of the widgets being displayed - and only the builder component:

<div class="row g-5 gx-xxl-8">
  <div class="col-xxl-4">
    <app-builder></app-builder>
  </div>
</div>

I've made sure that dashboard.module.ts imports BuilderModule and BuilderModule exports BuilderComponent.

I'm not sure where the issue is coming from. Any help appreciated.

faizalmy commented 3 months ago

Hi

When you use <app-builder></app-builder>, the BuilderComponent will be fixed to that position in your template. If you intend to make it part of the routing system, replace it with a <router-outlet> tag. This way, the component can be loaded dynamically based on the route configuration.