NGO-DB/ndb-core

View on GitHub
src/app/features/dashboard-widgets/entity-count-dashboard-widget/entity-count-dashboard-widget.module.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { NgModule } from "@angular/core";
import { ComponentRegistry } from "../../../dynamic-components";

@NgModule({})
export class EntityCountDashboardWidgetModule {
  constructor(components: ComponentRegistry) {
    components.addAll([
      [
        "EntityCountDashboard",
        () =>
          import(
            "./entity-count-dashboard/entity-count-dashboard.component"
          ).then((c) => c.EntityCountDashboardComponent),
      ],
      [
        "ChildrenCountDashboard",
        () =>
          import(
            "./entity-count-dashboard/entity-count-dashboard.component"
          ).then((c) => c.EntityCountDashboardComponent),
      ],
    ]);
  }
}