70 lines
1.2 KiB
Plaintext
70 lines
1.2 KiB
Plaintext
|
|
p.location-badge.
|
|
exported from <a href='../change_detection'>angular2/change_detection</a>
|
|
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipes.ts#L6-L115">angular2/src/change_detection/pipes/pipes.ts (line 6)</a>
|
|
|
|
:markdown
|
|
|
|
|
|
.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 <a href='Pipe-interface.html'><code>Pipe</code></a> names to <a href='PipeFactory-interface.html'><code>PipeFactory</code></a> lists used to configure the
|
|
<a href='Pipes-class.html'><code>Pipes</code></a> 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|