ng2-materialize
Version:
An Angular 2+ wrap around Materialize library
25 lines (24 loc) • 924 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var MzTextareaPrefixDirective = (function () {
function MzTextareaPrefixDirective(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
}
MzTextareaPrefixDirective.prototype.ngOnInit = function () {
this.renderer.setElementClass(this.elementRef.nativeElement, 'prefix', true);
};
return MzTextareaPrefixDirective;
}());
MzTextareaPrefixDirective.decorators = [
{ type: core_1.Directive, args: [{
selector: 'i[mzTextareaPrefix], i[mz-textarea-prefix]',
},] },
];
/** @nocollapse */
MzTextareaPrefixDirective.ctorParameters = function () { return [
{ type: core_1.ElementRef, },
{ type: core_1.Renderer, },
]; };
exports.MzTextareaPrefixDirective = MzTextareaPrefixDirective;