import { DynamicItemExtensionBase } from '@anglr/dynamic';
/**
 * Extension that sets id of component to instance of component
 */
export class IdSetterExtension extends DynamicItemExtensionBase {
    //######################### public methods - overrides #########################
    /**
     * @inheritdoc
     */
    async onInit() {
        if (this.instance) {
            this.instance.setId(this.metadata.id);
        }
    }
}
//# sourceMappingURL=placeholderData.extension.js.map