2015-07-28 13:41:07 -07:00

85 lines
1.4 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-L117">angular2/src/change_detection/pipes/pipes.ts (line 6)</a>
: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&lt;string, PipeFactory[]&gt;)
: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