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