UNPKG

@schoolbelle/common

Version:

Demo library to showcase Angular packaging format

2 lines 965 B
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("@schoolbelle/common/pipes/highlight",["exports","@angular/core"],o):o((e.schoolbelle=e.schoolbelle||{},e.schoolbelle.common=e.schoolbelle.common||{},e.schoolbelle.common.pipes=e.schoolbelle.common.pipes||{},e.schoolbelle.common.pipes.highlight={}),e.ng.core)}(this,function(e,o){"use strict";var n=function(){function e(){}return e.prototype.transform=function(n,e){return n&&e&&e.split(" ").forEach(function(e){var o=new RegExp(e,"i");n=n.replace(o,"<strong>"+e+"</strong>")}),n},e.decorators=[{type:o.Pipe,args:[{name:"highlight"}]}],e}(),t=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{declarations:[n],exports:[n]}]}],e}();e.HighlightPipeModule=t,e.HighlightPipe=n,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=schoolbelle-common-pipes-highlight.umd.min.js.map