angular-cn/modules/angular2/change_detection.ts
vsavkin 2dcf714d2b refactor(pipes): use Injector instead of pipe factories for pipe instantiation
BREAKING CHANGE
    - Pipe factories have been removed.
    - PIpe names to pipe implementations are 1-to-1  instead of 1-to-*

 Before:
     class DateFormatter {
         transform(date, args){}
     }

     class DateFormatterFactory {
       supporst(obj) { return true; }
       create(cdRef) { return new DateFormatter(); }
     }
     new Pipes({date: [new DateFormatterFactory()]})

After
    class DateFormatter {
      transform(date, args){}
    }
    new Pipes({date: DateFormatter})
2015-08-07 10:02:11 -07:00

34 lines
541 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,
defaultPipes,
Pipe,
Pipes,
IterableDiffers,
IterableDiffer,
IterableDifferFactory,
KeyValueDiffers,
KeyValueDiffer,
KeyValueDifferFactory,
BasePipe
} from 'angular2/src/change_detection/change_detection';