Skip to content

Commit

Permalink
fix(ng2.uiView): Fix "Invalid left-hand in assignment"
Browse files Browse the repository at this point in the history
fix(ng2): export UIRouterGlobals class for use in ng1-to-ng2
  • Loading branch information
christopherthielen committed Apr 6, 2016
1 parent f6dae28 commit 3f711a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
9 changes: 4 additions & 5 deletions src/ng2/uiView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,16 @@ export interface ParentUiViewInject {
// <div style="padding: 1em; border: 1px solid lightgrey;">
//
// <div #content style="color: lightgrey; font-size: smaller;">
// <div>ui-view #{{uiViewData.id}} created by '{{ parentContext.name || "(root)" }}' state</div>
// <div>name: (absolute) '{{uiViewData.fqn}}' (contextual) '{{uiViewData.name}}@{{parentContext.name}}' </div>
// <div>currently filled by: '{{(uiViewData.config && uiViewData.config.viewDecl.$context) || 'empty...'}}'</div>
// <div>ui-view #{{uiViewData?.id}} created by '{{ parentContext?.name || "(root)" }}' state</div>
// <div>name: (absolute) '{{uiViewData?.fqn}}' (contextual) '{{uiViewData?.name}}@{{parentContext?.name}}' </div>
// <div>currently filled by: '{{(uiViewData?.config && uiViewData?.config?.viewDecl?.$context) || 'empty...'}}'</div>
// </div>
//
// </div>`
})
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 = {};
Expand Down

0 comments on commit 3f711a1

Please sign in to comment.