使用page.js,是否可以拥有嵌套的数据路由?

时间:2015-10-09 14:31:06

标签: polymer polymer-starter-kit page.js

例如,我有多个页面之间的路由,如登录,家庭,联系等。但在家里,我想为抽屉面板创建一个数据路径,该路由器将路由到主页内的内容。或者像标签之间的滑动页面?这有可能吗?

                <paper-tabs selected="{{selectedPage}}">
                    <paper-tab>Page 0</paper-tab>
                    <paper-tab>Page 1</paper-tab>
                    <paper-tab>Page 2</paper-tab>
                </paper-tabs>


                <iron-pages attr-for-selected="data-route" selected="{{route}}">
                    <section data-route="home">
                        <paper-material elevation="1">                 

                            <swipe-pages attr-for-selected="data-route" selected="{{selectedPage}}">
                                <swipe-page layout vertical center center-justified>1</swipe-page>
                                <swipe-page layout vertical center center-justified>2</swipe-page>
                                <swipe-page layout vertical center center-justified>3</swipe-page>
                            </swipe-pages>
                        </paper-material>


                    </section>

0 个答案:

没有答案