diff --git a/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts b/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts index 289308b6fd..c69ee499c9 100644 --- a/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts +++ b/packages/animations/browser/src/render/css_keyframes/css_keyframes_driver.ts @@ -45,7 +45,7 @@ export class CssKeyframesDriver implements AnimationDriver { let tab = ''; keyframes.forEach(kf => { tab = TAB_SPACE; - const offset = parseFloat(kf.offset); + const offset = parseFloat(kf['offset']); keyframeStr += `${tab}${offset * 100}% {\n`; tab += TAB_SPACE; Object.keys(kf).forEach(prop => { diff --git a/packages/compiler-cli/src/transformers/inline_resources.ts b/packages/compiler-cli/src/transformers/inline_resources.ts index cf2a4c401c..9ac282814c 100644 --- a/packages/compiler-cli/src/transformers/inline_resources.ts +++ b/packages/compiler-cli/src/transformers/inline_resources.ts @@ -65,7 +65,7 @@ export class InlineResourcesMetadataTransformer implements MetadataTransformer { updateDecoratorMetadata(loader: StaticResourceLoader, arg: MetadataObject): MetadataObject { if (arg['templateUrl']) { arg['template'] = loader.get(arg['templateUrl']); - delete arg.templateUrl; + delete arg['templateUrl']; } const styles = arg['styles'] || []; @@ -76,7 +76,7 @@ export class InlineResourcesMetadataTransformer implements MetadataTransformer { styles.push(...styleUrls.map(styleUrl => loader.get(styleUrl))); if (styles.length > 0) { arg['styles'] = styles; - delete arg.styleUrls; + delete arg['styleUrls']; } return arg; diff --git a/packages/compiler/src/aot/static_symbol_resolver.ts b/packages/compiler/src/aot/static_symbol_resolver.ts index 8a3b72ce18..959f973a33 100644 --- a/packages/compiler/src/aot/static_symbol_resolver.ts +++ b/packages/compiler/src/aot/static_symbol_resolver.ts @@ -420,18 +420,18 @@ export class StaticSymbolResolver { if (!filePath) { return { __symbolic: 'error', - message: - `Could not resolve ${module} relative to ${self.host.getMetadataFor(sourceSymbol.filePath)}.`, - line: map.line, - character: map.character, + message: `Could not resolve ${module} relative to ${ + self.host.getMetadataFor(sourceSymbol.filePath)}.`, + line: map['line'], + character: map['character'], fileName: getOriginalName() }; } return { __symbolic: 'resolved', symbol: self.getStaticSymbol(filePath, name), - line: map.line, - character: map.character, + line: map['line'], + character: map['character'], fileName: getOriginalName() }; } else if (functionParams.indexOf(name) >= 0) { diff --git a/packages/compiler/src/aot/summary_serializer.ts b/packages/compiler/src/aot/summary_serializer.ts index f8981565a9..fbc7941491 100644 --- a/packages/compiler/src/aot/summary_serializer.ts +++ b/packages/compiler/src/aot/summary_serializer.ts @@ -249,7 +249,7 @@ class ToJsonSerializer extends ValueTransformer { */ visitStringMap(map: {[key: string]: any}, context: any): any { if (map['__symbolic'] === 'resolved') { - return visitValue(map.symbol, this, context); + return visitValue(map['symbol'], this, context); } if (map['__symbolic'] === 'error') { delete map['line']; diff --git a/packages/core/src/compiler/compiler_facade.ts b/packages/core/src/compiler/compiler_facade.ts index 1515cf50e1..b8aeb53e81 100644 --- a/packages/core/src/compiler/compiler_facade.ts +++ b/packages/core/src/compiler/compiler_facade.ts @@ -10,7 +10,7 @@ import {CompilerFacade, ExportedCompilerFacade} from './compiler_facade_interfac export * from './compiler_facade_interface'; export function getCompilerFacade(): CompilerFacade { - const globalNg: ExportedCompilerFacade = global.ng; + const globalNg: ExportedCompilerFacade = global['ng']; if (!globalNg || !globalNg.ɵcompilerFacade) { throw new Error( `Angular JIT compilation failed: '@angular/compiler' not loaded!\n` + diff --git a/packages/core/src/render3/styling/class_and_style_bindings.ts b/packages/core/src/render3/styling/class_and_style_bindings.ts index 85d47fa232..d8f43405d0 100644 --- a/packages/core/src/render3/styling/class_and_style_bindings.ts +++ b/packages/core/src/render3/styling/class_and_style_bindings.ts @@ -568,7 +568,7 @@ export function updateStylingMap( const classesValue = classesPlayerBuilder ? (classesInput as BoundPlayerFactory<{[key: string]: any}|string>) !.value : classesInput; - const stylesValue = stylesPlayerBuilder ? stylesInput !.value : stylesInput; + const stylesValue = stylesPlayerBuilder ? stylesInput !['value'] : stylesInput; let classNames: string[] = EMPTY_ARRAY; let applyAllClasses = false; diff --git a/packages/forms/src/form_builder.ts b/packages/forms/src/form_builder.ts index 1d672c20ab..3b21ad0316 100644 --- a/packages/forms/src/form_builder.ts +++ b/packages/forms/src/form_builder.ts @@ -70,8 +70,8 @@ export class FormBuilder { updateOn = options.updateOn != null ? options.updateOn : undefined; } else { // `options` are legacy form group options - validators = options.validator != null ? options.validator : null; - asyncValidators = options.asyncValidator != null ? options.asyncValidator : null; + validators = options['validator'] != null ? options['validator'] : null; + asyncValidators = options['asyncValidator'] != null ? options['asyncValidator'] : null; } }