Skip to content

Commit 3f711a1

Browse files
fix(ng2.uiView): Fix "Invalid left-hand in assignment"
fix(ng2): export UIRouterGlobals class for use in ng1-to-ng2
1 parent f6dae28 commit 3f711a1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ export * from "./state/module";
88
export * from "./transition/module";
99
export * from "./url/module";
1010
export * from "./view/module";
11+
export * from "./globals";
1112

1213
export { UIRouter } from "./router";

src/ng2/uiView.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,16 @@ export interface ParentUiViewInject {
9191
// <div style="padding: 1em; border: 1px solid lightgrey;">
9292
//
9393
// <div #content style="color: lightgrey; font-size: smaller;">
94-
// <div>ui-view #{{uiViewData.id}} created by '{{ parentContext.name || "(root)" }}' state</div>
95-
// <div>name: (absolute) '{{uiViewData.fqn}}' (contextual) '{{uiViewData.name}}@{{parentContext.name}}' </div>
96-
// <div>currently filled by: '{{(uiViewData.config && uiViewData.config.viewDecl.$context) || 'empty...'}}'</div>
94+
// <div>ui-view #{{uiViewData?.id}} created by '{{ parentContext?.name || "(root)" }}' state</div>
95+
// <div>name: (absolute) '{{uiViewData?.fqn}}' (contextual) '{{uiViewData?.name}}@{{parentContext?.name}}' </div>
96+
// <div>currently filled by: '{{(uiViewData?.config && uiViewData?.config?.viewDecl?.$context) || 'empty...'}}'</div>
9797
// </div>
9898
//
9999
// </div>`
100100
})
101101
export class UiView {
102102
@Input() name: string;
103-
@Input() set 'ui-view'(val) { this.name = val; }
104-
103+
@Input('ui-view') set _name(val) { this.name = val; }
105104
componentRef: ComponentRef;
106105
deregister: Function;
107106
uiViewData: any = {};

0 commit comments

Comments
 (0)