title: Switch View with Tabs in Polymer 1.0
body: <p>I want to change the View in Polymer when I click on a certain Tab. For this I thought of using paper-tabs and iron-pages as described in the <a href="https://elements.polymer-project.org/elements/paper-tabs"> paper-tabs documentation</a>. </p>
  
  <p>This is HTML that I have to realize this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Test&lt;/title&gt;
    &lt;script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"&gt;&lt;/script&gt;
    &lt;link rel="import" href="bower_components/polymer/polymer.html"&gt;
    &lt;link rel="import" href="bower_components/paper-tabs/paper-tabs.html"&gt;
    &lt;link rel="import" href="bower_components/iron-pages/iron-pages.html"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;paper-tabs selected="{{selected}}"&gt;
      &lt;paper-tab&gt;Tab 1&lt;/paper-tab&gt;
      &lt;paper-tab&gt;Tab 2&lt;/paper-tab&gt;
      &lt;paper-tab&gt;Tab 3&lt;/paper-tab&gt;
    &lt;/paper-tabs&gt;
  
    {{selected}}
  
    &lt;iron-pages selected="{{selected}}"&gt;
      &lt;div&gt;Page 1&lt;/div&gt;
      &lt;div&gt;Page 2&lt;/div&gt;
      &lt;div&gt;Page 3&lt;/div&gt;
    &lt;/iron-pages&gt;
    
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Changing the Tabs seems to work. But it looks like the selected variable is not getting set correctly because the iron-pages element does not change the view. How can I achieve the needed data-binding in Polymer 1.0? Do I need to create a custom container Element around the two elements to give them a scope where both could access such a variable?</p>