Skip to content

Commit

Permalink
feat(View): Allow targeting views on own state using viewname@. (no…
Browse files Browse the repository at this point in the history
…rmalizeUIViewTarget)

Closes #25
  • Loading branch information
christopherthielen committed Jan 10, 2017
1 parent 92b34a1 commit 7078216
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/view/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ export class ViewService {
if (relativeMatch.exec(uiViewContextAnchor)) {
let anchor = uiViewContextAnchor.split(".").reduce(((anchor, x) => anchor.parent), context);
uiViewContextAnchor = anchor.name;
} else if (uiViewContextAnchor === '.') {
uiViewContextAnchor = context.name;
}

return {uiViewName, uiViewContextAnchor};
Expand Down

0 comments on commit 7078216

Please sign in to comment.