Polymer加载动态加载的页面

时间:2015-01-31 13:18:15

标签: html5 polymer

我正在创建一个内容根据登录用户而变化的网页。

用户内容将根据user.pages信息返回的信息而改变。

这就是我正在寻找的基本

<user-signin></user-signin user="{{user}}">
<template repeat="{{page in user.pages}}">
<core-submenu id="{{page.name}}" label="{{page.name}}" hash="{{page.hash}}">
<template repeat="{{child in page.children}}">
    <core-item label="{{child.name}}" id="{{child.name}}" horizontal center layout hash="{{child.hash}}">
    </core-item>
</template>
</core-submenu>
</template>

信息页

<core-animated-pages fit id="pages" valueattr="hash" selected="{{$.main_menu.selected}}" transitions="slide-from-right">
        <section><help-desk/></section>
        <section><workers-page data="{{data}}"/></section>
        <section><log-page /></section>
        <template repeat="{{page in user.pages}}">
            <section hash="{{page.hash}}">
                <core-component-page sources='["{{page.content}}"]'></core-component-page>
            </section>
        </template>

</core-animated-pages>

0 个答案:

没有答案
相关问题