From 707821609bdf24a01f358225380ff56e1564daf0 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Tue, 10 Jan 2017 14:07:39 -0600 Subject: [PATCH] feat(View): Allow targeting views on own state using `viewname@.` (normalizeUIViewTarget) Closes #25 --- src/view/view.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/view/view.ts b/src/view/view.ts index fd149aa8..2d9604aa 100644 --- a/src/view/view.ts +++ b/src/view/view.ts @@ -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};