diff --git a/modules/angular2/src/core/change_detection/change_detection.ts b/modules/angular2/src/core/change_detection/change_detection.ts index 7277c2150c..9d5d2c9438 100644 --- a/modules/angular2/src/core/change_detection/change_detection.ts +++ b/modules/angular2/src/core/change_detection/change_detection.ts @@ -30,7 +30,7 @@ export { DebugContext, ChangeDetectorGenConfig } from './interfaces'; -export {ChangeDetectionStrategy, CHANGE_DECTION_STRATEGY_VALUES} from './constants'; +export {ChangeDetectionStrategy, CHANGE_DETECTION_STRATEGY_VALUES} from './constants'; export {DynamicProtoChangeDetector} from './proto_change_detector'; export {JitProtoChangeDetector} from './jit_proto_change_detector'; export {BindingRecord, BindingTarget} from './binding_record'; diff --git a/modules/angular2/src/core/change_detection/constants.ts b/modules/angular2/src/core/change_detection/constants.ts index ae1f4b849c..ef50a70e68 100644 --- a/modules/angular2/src/core/change_detection/constants.ts +++ b/modules/angular2/src/core/change_detection/constants.ts @@ -41,7 +41,7 @@ export enum ChangeDetectionStrategy { OnPushObserve } -export var CHANGE_DECTION_STRATEGY_VALUES = [ +export var CHANGE_DETECTION_STRATEGY_VALUES = [ ChangeDetectionStrategy.CheckOnce, ChangeDetectionStrategy.Checked, ChangeDetectionStrategy.CheckAlways, diff --git a/modules/angular2/src/core/compiler/directive_metadata.ts b/modules/angular2/src/core/compiler/directive_metadata.ts index a0e07cce26..b4f94df8be 100644 --- a/modules/angular2/src/core/compiler/directive_metadata.ts +++ b/modules/angular2/src/core/compiler/directive_metadata.ts @@ -10,7 +10,7 @@ import { import {StringMapWrapper} from 'angular2/src/core/facade/collection'; import { ChangeDetectionStrategy, - CHANGE_DECTION_STRATEGY_VALUES + CHANGE_DETECTION_STRATEGY_VALUES } from 'angular2/src/core/change_detection/change_detection'; import {ViewEncapsulation, VIEW_ENCAPSULATION_VALUES} from 'angular2/src/core/metadata/view'; import {CssSelector} from 'angular2/src/core/compiler/selector'; @@ -215,7 +215,7 @@ export class CompileDirectiveMetadata { exportAs: data['exportAs'], type: isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'], changeDetection: isPresent(data['changeDetection']) ? - CHANGE_DECTION_STRATEGY_VALUES[data['changeDetection']] : + CHANGE_DETECTION_STRATEGY_VALUES[data['changeDetection']] : data['changeDetection'], inputs: data['inputs'], outputs: data['outputs'],