diff --git a/modules/@angular/upgrade/src/aot/downgrade_component.ts b/modules/@angular/upgrade/src/aot/downgrade_component.ts index ec846f5d3b45..b644512fcc8c 100644 --- a/modules/@angular/upgrade/src/aot/downgrade_component.ts +++ b/modules/@angular/upgrade/src/aot/downgrade_component.ts @@ -81,7 +81,7 @@ export function downgradeComponent(info: /* ComponentInfo */ { link: (scope: angular.IScope, element: angular.IAugmentedJQuery, attrs: angular.IAttributes, parentInjector: Injector, transclude: angular.ITranscludeFunction) => { - if (parentInjector === null) { + if (parentInjector == null) { parentInjector = $injector.get(INJECTOR_KEY); } @@ -106,6 +106,6 @@ export function downgradeComponent(info: /* ComponentInfo */ { }; }; - directiveFactory.$inject = [$INJECTOR, $PARSE]; + directiveFactory['$inject'] = [$INJECTOR, $PARSE]; return directiveFactory; -} \ No newline at end of file +} diff --git a/modules/@angular/upgrade/src/aot/downgrade_component_adapter.ts b/modules/@angular/upgrade/src/aot/downgrade_component_adapter.ts index 9f73b81d7a09..e49993f87a24 100644 --- a/modules/@angular/upgrade/src/aot/downgrade_component_adapter.ts +++ b/modules/@angular/upgrade/src/aot/downgrade_component_adapter.ts @@ -155,7 +155,7 @@ export class DowngradeComponentAdapter { next: assignExpr ? ((setter: any) => (v: any /** TODO #9100 */) => setter(this.scope, v))(setter) : ((getter: any) => (v: any /** TODO #9100 */) => - getter(this.scope, {$event: v}))(getter) + getter(this.scope, {'$event': v}))(getter) }); } else { throw new Error( diff --git a/modules/@angular/upgrade/tsconfig-closure.json b/modules/@angular/upgrade/tsconfig-closure.json index 25c21369cdd7..31087d389f66 100644 --- a/modules/@angular/upgrade/tsconfig-closure.json +++ b/modules/@angular/upgrade/tsconfig-closure.json @@ -23,6 +23,7 @@ }, "files": [ "index.ts", + "static.ts", "../../../node_modules/zone.js/dist/zone.js.d.ts" ], "angularCompilerOptions": {