feat: add keyValDiff to default pipes
This commit is contained in:
parent
4a5d53c549
commit
85abfa943d
|
@ -19,6 +19,7 @@ import {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector}
|
||||||
from './src/change_detection/proto_change_detector';
|
from './src/change_detection/proto_change_detector';
|
||||||
import {PipeRegistry} from './src/change_detection/pipes/pipe_registry';
|
import {PipeRegistry} from './src/change_detection/pipes/pipe_registry';
|
||||||
import {ArrayChangesFactory} from './src/change_detection/pipes/array_changes';
|
import {ArrayChangesFactory} from './src/change_detection/pipes/array_changes';
|
||||||
|
import {KeyValueChangesFactory} from './src/change_detection/pipes/keyvalue_changes';
|
||||||
import {NullPipeFactory} from './src/change_detection/pipes/null_pipe';
|
import {NullPipeFactory} from './src/change_detection/pipes/null_pipe';
|
||||||
|
|
||||||
export class ChangeDetection {
|
export class ChangeDetection {
|
||||||
|
@ -32,6 +33,10 @@ export var defaultPipes = {
|
||||||
"iterableDiff" : [
|
"iterableDiff" : [
|
||||||
new ArrayChangesFactory(),
|
new ArrayChangesFactory(),
|
||||||
new NullPipeFactory()
|
new NullPipeFactory()
|
||||||
|
],
|
||||||
|
"keyValDiff" : [
|
||||||
|
new KeyValueChangesFactory(),
|
||||||
|
new NullPipeFactory()
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -64,4 +69,4 @@ export class JitChangeDetection extends ChangeDetection {
|
||||||
var _registry = new PipeRegistry(defaultPipes);
|
var _registry = new PipeRegistry(defaultPipes);
|
||||||
|
|
||||||
export var dynamicChangeDetection = new DynamicChangeDetection(_registry);
|
export var dynamicChangeDetection = new DynamicChangeDetection(_registry);
|
||||||
export var jitChangeDetection = new JitChangeDetection(_registry);
|
export var jitChangeDetection = new JitChangeDetection(_registry);
|
||||||
|
|
Loading…
Reference in New Issue