UNPKG

fwk-pipes

Version:

Framework with common pipes

17 lines 538 B
import { Injectable, Pipe } from '@angular/core'; var FilterToolPipe = (function () { function FilterToolPipe() { } FilterToolPipe.prototype.transform = function (tools, args) { return tools.filter(function (t) { return t.visible === true; }); }; FilterToolPipe.decorators = [ { type: Pipe, args: [{ name: 'filterTool' },] }, { type: Injectable }, ]; return FilterToolPipe; }()); export { FilterToolPipe }; //# sourceMappingURL=filterTool.pipe.js.map