Topeka example: switching page in core-animated-pages

119 views
Skip to first unread message

Anders Forsell

unread,
Jul 14, 2014, 1:15:11 AM7/14/14
to polym...@googlegroups.com
Hi,

I am playing around with Polymer Dart and having lots of fun.

Looking at the Topeka example to get inspiration I see that the topeka-profile page is where you "log in" with name and avatar.

Where is the logic for switching the selected page from the "topeka-profile" page?
I see the paper-fab "handleLogin" where "this.user" is set but nothing more... is there a listener somewhere?

Thanks,

Anders


brei...@gmail.com

unread,
Jul 15, 2014, 10:16:01 AM7/15/14
to polym...@googlegroups.com
Hi Anders,

this is done in the topeka-app component (topeka-app.html). It observes the "user" attribute (around line 70). When it changes, the method "startup" and later on "completeStartup" is called, which finally sets the selected page.
Reply all
Reply to author
Forward
0 new messages