p.location-badge.
exported from angular2/change_detection
defined in angular2/src/change_detection/pipes/pipes.ts (line 6)
:markdown
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(config: StringMap<string, PipeFactory[]>)
:markdown
.l-sub-section
h3 config
:markdown
Map of Pipe
names to PipeFactory
lists used to configure the
Pipes
registry.
#Example
```
var pipesConfig = {
'json': [jsonPipeFactory]
}
@Component({
viewInjector: [
bind(Pipes).toValue(new Pipes(pipesConfig))
]
})
```
.l-sub-section
h3 get
pre.prettyprint
code.
get(type: string, obj: any, cdRef?: ChangeDetectorRef, existingPipe?: Pipe)
:markdown