refactor(pipes): rename PipeRegistry to Pipes
BREAKING CHANGE: This change renames all instances of PipeRegistry to Pipes. As part of this change, the former "defaultPipes" export is now a Pipes instance, instead of a map. The map that was previously called "defaultPipes" no longer exists, but may be accessed via defaultPipes.config.
This commit is contained in:
@ -48,8 +48,8 @@ import {
|
||||
} from 'angular2/di';
|
||||
import {
|
||||
PipeFactory,
|
||||
PipeRegistry,
|
||||
defaultPipeRegistry,
|
||||
Pipes,
|
||||
defaultPipes,
|
||||
ChangeDetection,
|
||||
DynamicChangeDetection,
|
||||
Pipe,
|
||||
@ -1402,13 +1402,13 @@ class PushCmpWithRef {
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
class PipeRegistryWithDouble extends PipeRegistry {
|
||||
class PipesWithDouble extends Pipes {
|
||||
constructor() { super({"double": [new DoublePipeFactory()]}); }
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'my-comp-with-pipes',
|
||||
viewInjector: [new Binding(PipeRegistry, {toClass: PipeRegistryWithDouble})]
|
||||
viewInjector: [new Binding(Pipes, {toClass: PipesWithDouble})]
|
||||
})
|
||||
@View({directives: []})
|
||||
@Injectable()
|
||||
|
Reference in New Issue
Block a user