UNPKG

@samuelberthe/angular2-materialize

Version:

Angular 2 support for Materialize CSS framework

31 lines (30 loc) 1.13 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ export { MaterializeDirective } from "./materialize-directive"; export { MaterializeModule } from "./materialize-module"; if ("undefined" != typeof window) { if (!("M" in window)) { throw new Error("Couldn't find Materialize object on window. It is created by the materialize-css library. Please import materialize-css before importing angular2-materialize."); } if (!("Waves" in window)) { throw new Error("Couldn't find Waves object on window. It is supposed to be created by the materialize-css library. Please import materialize-css before importing angular2-materialize."); } Waves.displayEffect(); // polyfill remove any elem in DOM - https://github.com/InfomediaLtd/angular2-materialize/issues/377 (IE) if (!Element.prototype.remove) { Element.prototype.remove = function remove() { if (this.parentNode) { this.parentNode.removeChild(this); } }; } } /** * @param {?} obj * @return {?} */ export function toast(obj) { M.toast(obj); }