var _context, _updateView;
import { __classPrivateFieldGet } from "tslib";
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
export class ZUILetDirective {
    constructor(vcRef, templateRef) {
        this.vcRef = vcRef;
        this.templateRef = templateRef;
        _context.set(this, {});
        _updateView.set(this, () => {
            this.vcRef.clear();
            this.vcRef.createEmbeddedView(this.templateRef, __classPrivateFieldGet(this, _context));
        });
    }
    set zuiLet(context) {
        __classPrivateFieldGet(this, _context).$implicit = __classPrivateFieldGet(this, _context).zuiLet = context;
        __classPrivateFieldGet(this, _updateView).call(this);
    }
}
_context = new WeakMap(), _updateView = new WeakMap();
ZUILetDirective.decorators = [
    { type: Directive, args: [{ selector: '[zuiLet]' },] }
];
ZUILetDirective.ctorParameters = () => [
    { type: ViewContainerRef },
    { type: TemplateRef }
];
ZUILetDirective.propDecorators = {
    zuiLet: [{ type: Input }]
};
//# sourceMappingURL=zui-let.directive.js.map