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 = {};