angular2-mdl
Version:
Angular 2 components, directives and styles based on material design lite https://getmdl.io.
27 lines • 1.16 kB
JavaScript
import { Directive, Optional, forwardRef, Inject } from '@angular/core';
import { MdlChipComponent } from './mdl-chip.component';
import { MdlStructureError } from '../common/mdl-error';
export var MdlChipContactDirective = (function () {
function MdlChipContactDirective(mdlChipComponent) {
this.mdlChipComponent = mdlChipComponent;
}
MdlChipContactDirective.prototype.ngOnInit = function () {
if (!this.mdlChipComponent) {
throw new MdlStructureError('mdl-chip-contact', 'mdl-chip');
}
};
MdlChipContactDirective.decorators = [
{ type: Directive, args: [{
selector: '[mdl-chip-contact]',
host: {
'[class.mdl-chip__contact]': 'true'
}
},] },
];
/** @nocollapse */
MdlChipContactDirective.ctorParameters = function () { return [
{ type: MdlChipComponent, decorators: [{ type: Optional }, { type: Inject, args: [forwardRef(function () { return MdlChipComponent; }),] },] },
]; };
return MdlChipContactDirective;
}());
//# sourceMappingURL=mdl-chip-contact.directive.js.map