Route load callback for oData feed?

22 views
Skip to first unread message

daniel...@gmail.com

unread,
Jun 22, 2015, 9:02:22 AM6/22/15
to polym...@googlegroups.com
Hi All,

I am using the Polymer starter kit to prototype a line of business app using jaydata and an IIS oData feed.

In the starter kit I have created some new routes in routing.html such as this:

  page('/orders', function () {
        app.route = 'orders';
    });

and added them to my index.html as so:

  <section data-route="orders">
                  <paper-material elevation="1">
                      <h2 class="paper-font-display2">Orders</h2>
                      <p>This is the orders section</p>
             
                  </paper-material>
              </section>

My question is as I navigate between these different routes my data is not refreshing as my oData feed loads on the ready:function() which is only called when the initial home page is loaded . How can I hook into a route load callback so I know when data needs to be refreshed?

Thanks!

Daniel
Reply all
Reply to author
Forward
0 new messages