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