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

iron-activate event not firing #44

Open
ghost opened this issue Jul 30, 2016 · 1 comment
Open

iron-activate event not firing #44

ghost opened this issue Jul 30, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 30, 2016

I am trying to get default routes working in my application with nested app-route and iron-pages by binding fallback-selector to app-location. It works, but I need this to work across multiple sub-elements of my application, and if all the iron-pages elements update the location, it fritzes the app into an endless loop of location changes.

To make it work, in each sub-element I need to verify whether the correct route is active, and if it isn't I need to cancel the fallback selection on iron-pages. The iron-select event is firing, the iron-activate is not.

    <app-location route="{{route}}"></app-location>

    <app-route
        route="{{route}}"
        pattern="/account/:page"
        active="{{isActiveRoute}}">
    </app-route>

    <iron-pages
      id="pages"
      selected="{{route.path}}"
      attr-for-selected="name"
      fallback-selection="/account/login"
      on-iron-activate="_pageActivate"
      on-iron-select="_pageSelect">

      <pk-account-login name="/account/login"></pk-account-login>

    </iron-pages>
@ergo
Copy link

ergo commented Aug 10, 2016

Same here, never got iron-activate to work.

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