angular-cn/modules/angular2/change_detection.ts
vsavkin 5b5d31fa9a feat(pipe): added the Pipe decorator and the pipe property to View
BREAKING CHANGE:
    Instead of configuring pipes via a Pipes object, now you can configure them by providing the pipes property to the View decorator.

    @Pipe({
      name: 'double'
    })
    class DoublePipe {
      transform(value, args) { return value * 2; }
    }

    @View({
      template: '{{ 10 | double}}'
      pipes: [DoublePipe]
    })
    class CustomComponent {}

Closes #3572
2015-08-12 00:38:40 +00:00

32 lines
534 B
TypeScript

/**
* @module
* @description
* Change detection enables data binding in Angular.
*/
export {
CHECK_ONCE,
CHECK_ALWAYS,
DETACHED,
CHECKED,
ON_PUSH,
DEFAULT,
ExpressionChangedAfterItHasBeenCheckedException,
ChangeDetectionError,
ChangeDetector,
Locals,
ChangeDetectorRef,
WrappedValue,
PipeTransform,
IterableDiffers,
IterableDiffer,
IterableDifferFactory,
KeyValueDiffers,
KeyValueDiffer,
KeyValueDifferFactory,
BasePipeTransform
} from 'angular2/src/change_detection/change_detection';