ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
70 lines (62 loc) • 2.9 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('ng-zorro-antd/core/element-patch', ['exports', '@angular/core', '@angular/common'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ng-zorro-antd'] = global['ng-zorro-antd'] || {}, global['ng-zorro-antd'].core = global['ng-zorro-antd'].core || {}, global['ng-zorro-antd'].core['element-patch'] = {}), global.ng.core, global.ng.common));
}(this, (function (exports, core, common) { 'use strict';
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/**
* A patch directive to select the element of a component.
*/
var NzElementPatchDirective = /** @class */ (function () {
function NzElementPatchDirective(elementRef) {
this.elementRef = elementRef;
}
Object.defineProperty(NzElementPatchDirective.prototype, "nativeElement", {
get: function () {
return this.elementRef.nativeElement;
},
enumerable: false,
configurable: true
});
return NzElementPatchDirective;
}());
NzElementPatchDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[nzElement], [nz-element]',
exportAs: 'nzElement'
},] }
];
NzElementPatchDirective.ctorParameters = function () { return [
{ type: core.ElementRef }
]; };
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var NzElementPatchModule = /** @class */ (function () {
function NzElementPatchModule() {
}
return NzElementPatchModule;
}());
NzElementPatchModule.decorators = [
{ type: core.NgModule, args: [{
imports: [common.CommonModule],
declarations: [NzElementPatchDirective],
exports: [NzElementPatchDirective]
},] }
];
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/**
* Generated bundle index. Do not edit.
*/
exports.NzElementPatchDirective = NzElementPatchDirective;
exports.NzElementPatchModule = NzElementPatchModule;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=ng-zorro-antd-core-element-patch.umd.js.map