UNPKG

@ngha/nested-value

Version:

nestedValue the value at `path` of `object`

17 lines 569 B
import { Pipe } from '@angular/core'; import { NestedValueService } from './nested-value.service'; export class NestedValuePipe { constructor(nestedValueService) { this.nestedValueService = nestedValueService; } transform(object, path, defaultValue) { return this.nestedValueService.nestedValue(object, path, defaultValue); } } NestedValuePipe.decorators = [ { type: Pipe, args: [{ name: 'nestedValue' },] } ]; NestedValuePipe.ctorParameters = () => [ { type: NestedValueService } ]; //# sourceMappingURL=nested-value.pipe.js.map