WebComponentsReady event not triggered

128 views
Skip to first unread message

Nicolas Rannou

unread,
Mar 13, 2014, 10:04:58 AM3/13/14
to polym...@googlegroups.com
Hi,

I have my main element using the flatiron-element to redirect my user:
....
<template if="{{route != null}}">
  <template if="{{route == 'home' || route == ''}}">
    <home-element structure="{{home}}"></home-element>
  </template>
  <template if="{{route == 'research'}}">
    <research-element structure="{{research}}"></research-element>
  </template>
  <template if="{{route == 'highlights'}}">
    <!-- <highlights-element></highlights-element> -->
  </template>
</template>
....

1- On login (#home), the user get directed to the 'home-element', and the WebComponentsReady gets fired properly.
2- If I want to go to another page (#research), the users gets directed to the 'research-element'. The catch is that WebComponentsReady is not re-fired once the 'research-element' is ready.

Is it expected or am I doing something wrong?

In addition, it there any good way to cache the elements once they have been loaded?

Best,
Nicolas

Addy Osmani

unread,
Mar 13, 2014, 11:46:23 AM3/13/14
to polym...@googlegroups.com
Replied to your question on StackOverflow.
Reply all
Reply to author
Forward
0 new messages