This works. Thank you! On Tuesday, September 22, 2015 at 8:49:06 PM UTC-7, Aleks Totic wrote: > > The problem is that iron-localstorage does not reflect updates you make > with localstorage.setItem. If you are using DOM APIs, you need to call > iron-localstorage.reload to load the new value. > > localstorage is not a global. > > Aleks > > > On Friday, September 18, 2015 at 5:39:39 PM UTC-7, [email protected] > wrote: >> >> I have this: >> >> <template id="repeat" is="dom-repeat" items="[[model]]" as="day"> >> <component model="[[day]]"></component> >> </template> >> >> >> It's recieving model from a iron-local-storage load. When I push >> something to my localstorage using localStorage.setItem, I want this >> dom-repeat to update and display the new item I pushed. >> >> Right now it only appears AFTER I refresh the page, because it reloads >> everything from local storage. >> >> I tried using this.$.repeat.render(); but that didn't work. I want the >> dom-repeat to display the new object instantly without having to refresh >> the page. >> >> Is this possible? >> >> Thanks! >> >>
Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/b98b80fc-e422-4f11-923a-bb053c2a1de5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
