ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
18 lines (15 loc) • 505 B
text/typescript
import { NgModule } from '@angular/core';
import { STWidgetRegistry } from '@ohayo/components/st';
import { SharedModule } from '../shared.module';
import { STImgWidget } from './img.widget';
export const STWIDGET_COMPONENTS = [STImgWidget];
({
declarations: STWIDGET_COMPONENTS,
imports: [SharedModule],
exports: [...STWIDGET_COMPONENTS],
})
export class STWidgetModule {
constructor(widgetRegistry: STWidgetRegistry) {
widgetRegistry.register(STImgWidget.KEY, STImgWidget);
}
}