Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind info about the currently mounted route, to parent element property. #9

Open
aabluedragon opened this issue Dec 14, 2015 · 0 comments

Comments

@aabluedragon
Copy link

Would be nice to have the possibility of binding the name/info of the currently mounted route to a property on it's parent, while not using :param, for example:

'nav': routeCfg(
          path: '/nav',
          view: 'view-navigation',
          defaultRoute: true,
          mount: {
            'dashboard':routeCfg(
                path: '/dashboard',
                view: 'view-dashboard',
                defaultRoute: true,
                enter: (rt.RouteEnterEvent route) => router.go('nav.dashboard', {})),
            'employees':routeCfg(
                path: '/employees',
                view: 'view-employees')
          })

In the above example, In view-navigation polymer element, I would like to have a property bound to the name of either employees or dashboard, or maybe even bind a reference to the actual element, or something similar such a 'currentRouteInfo', a RouteInfo object.

Use case: when working with a paper-drawer-panel, and in the Drawer there are buttons that redirect to the chosen pages, and you want to have a radio group instead of button, so it's visible which one is chosen in the Drawer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant