From 3f711a183122a5bff545cfe5578e9f6809a96d4a Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Tue, 5 Apr 2016 23:39:40 -0500 Subject: [PATCH] fix(ng2.uiView): Fix "Invalid left-hand in assignment" fix(ng2): export UIRouterGlobals class for use in ng1-to-ng2 --- src/core.ts | 1 + src/ng2/uiView.ts | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core.ts b/src/core.ts index a013740d6..dafa9f409 100644 --- a/src/core.ts +++ b/src/core.ts @@ -8,5 +8,6 @@ export * from "./state/module"; export * from "./transition/module"; export * from "./url/module"; export * from "./view/module"; +export * from "./globals"; export { UIRouter } from "./router"; diff --git a/src/ng2/uiView.ts b/src/ng2/uiView.ts index 3db525de9..1af1a616a 100755 --- a/src/ng2/uiView.ts +++ b/src/ng2/uiView.ts @@ -91,17 +91,16 @@ export interface ParentUiViewInject { //
// //
- //
ui-view #{{uiViewData.id}} created by '{{ parentContext.name || "(root)" }}' state
- //
name: (absolute) '{{uiViewData.fqn}}' (contextual) '{{uiViewData.name}}@{{parentContext.name}}'
- //
currently filled by: '{{(uiViewData.config && uiViewData.config.viewDecl.$context) || 'empty...'}}'
+ //
ui-view #{{uiViewData?.id}} created by '{{ parentContext?.name || "(root)" }}' state
+ //
name: (absolute) '{{uiViewData?.fqn}}' (contextual) '{{uiViewData?.name}}@{{parentContext?.name}}'
+ //
currently filled by: '{{(uiViewData?.config && uiViewData?.config?.viewDecl?.$context) || 'empty...'}}'
//
// //
` }) export class UiView { @Input() name: string; - @Input() set 'ui-view'(val) { this.name = val; } - + @Input('ui-view') set _name(val) { this.name = val; } componentRef: ComponentRef; deregister: Function; uiViewData: any = {};