html - Polymer 1.0 Cordova, ¿How could I do to change the direction of the home page? -


whenever start app, starts address: http://127.0.0.1:49218/www/index.html#!/www/index.html, want start address: http://127.0.0.1:49218/www/index.html#!/home, "home (inicio)" section in app. code:

<!doctype html>  <html>    <head>      <meta name="format-detection" content="telephone=no">      <meta name="msapplication-tap-highlight" content="no">      <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">      <script src="bower_components/webcomponentsjs/webcomponents.js"></script>      <link rel="stylesheet" href="css/style.css">      <link rel="import" href="bower_components/polymer/polymer.html">      <link rel="import" href="bower_components/paper-scroll-header-panel/paper-scroll-header-panel.html">      <link rel="import" href="bower_components/paper-toolbar/paper-toolbar.html">      <link rel="import" href="bower_components/paper-icon-button/paper-icon-button.html">      <link rel="import" href="bower_components/iron-icons/iron-icons.html">      <link rel="import" href="bower_components/iron-icon/iron-icon.html">      <link rel="import" href="bower_components/paper-drawer-panel/paper-drawer-panel.html">      <link rel="import" href="bower_components/paper-menu/paper-menu.html">      <link rel="import" href="bower_components/paper-styles/paper-styles.html">      <link rel="import" href="bower_components/paper-styles/typography.html">      <link rel="import" href="bower_components/pushstate-anchor/pushstate-anchor.html">      <link rel="import" href="bower_components/iron-pages/iron-pages.html">      <link rel="import" href="bower_components/neon-animation/neon-animated-pages.html">      <link rel="import" href="bower_components/neon-animation/neon-animations.html">      <link rel="import" href="catalogo-component/catalogo-component.html">      <link rel="import" href="home-component/home-component.html">      <link rel="import" href="promociones-component/promociones-component.html">      <link rel="import" href="contacto-component/contacto-component.html">      <link rel="import" href="about-component/about-component.html">      <link rel="import" href="elements/routing.html">      <link rel="import" href="css/app-theme.html">      <style is="custom-style" include="app-theme.html"></style>      <title>reino unido</title>  </head>    <body unresolved>      <span id="browser-sync-binding"></span>      <template is="dom-bind" id="app">          <paper-drawer-panel>              <paper-scroll-header-panel drawer fixed>                  <div drawer class="menu">                      <paper-toolbar class="drawer">                          <span>reino unido</span>                      </paper-toolbar>                      <paper-menu attr-for-selected="data-route" selected="[[route]]">                          <a data-route="home" href="/home">                              <iron-icon icon="home"></iron-icon><span class="menu">inicio</span></a>                          <a data-route="catalogo" href="/catalogo">                              <iron-icon icon="shopping-cart"></iron-icon><span class="menu">catálogo</span></a>                          <a data-route="promociones" href="/promociones">                              <iron-icon icon="star"></iron-icon><span class="menu">promociones</span></a>                          <a data-route="contacto" href="/contacto">                              <iron-icon icon="drafts"></iron-icon><span class="menu">contáctanos</span></a>                          <a data-route="about" href="/about">                              <iron-icon icon="info"></iron-icon><span class="menu">acerca de</span></a>                      </paper-menu>                  </div>              </paper-scroll-header-panel>              <paper-scroll-header-panel main id="headerpanelmain" condenses keep-condensed-header>                  <div main class="page">                      <paper-toolbar class="main">                          <paper-icon-button icon="menu" paper-drawer-toggle></paper-icon-button>                          <span title class="flex">inicio</span>                          <paper-icon-button icon="refresh"></paper-icon-button>                      </paper-toolbar>                      <neon-animated-pages attr-for-selected="data-route" selected="{{route}}" class="secciones" entry-animation="slide-from-right-animation" exit-animation="slide-left-animation">                          <section data-route="home">                              <home-component></home-component>                          </section>                            <section data-route="catalogo">                              <catalogo-component></catalogo-component>                          </section>                            <section data-route="promociones">                              <promociones-component></promociones-component>                          </section>                            <section data-route="contacto">                              <contacto-component></contacto-component>                          </section>                            <section data-route="about">                              <about-component></about-component>                          </section>                      </neon-animated-pages>                  </div>              </paper-scroll-header-panel>          </paper-drawer-panel>      </template>  </body>    </html>

here's screenshot of app:

enter image description here

try editing content tag in config.xml. might this:

<content src="index.html" /> 

just change src value fits needs.


Comments