Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/@angular/upgrade/src/aot/downgrade_component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -106,6 +106,6 @@ export function downgradeComponent(info: /* ComponentInfo */ {
};
};

directiveFactory.$inject = [$INJECTOR, $PARSE];
directiveFactory['$inject'] = [$INJECTOR, $PARSE];
return directiveFactory;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions modules/@angular/upgrade/tsconfig-closure.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"files": [
"index.ts",
"static.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts"
],
"angularCompilerOptions": {
Expand Down