Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdTabs: tabs with dynamic content #2326

Description

@ferc

If I change the tab content dynamically (using an id), these changes do not show in the tab content, only change the node in md-tabs > md-tabs-wrapper > md-tab-data (because angular material copies the tabs I guess),

<md-tab label="three">
  <md-content class="md-padding">
    <h1 class="md-display-2">Tab Three</h1>
    <p id="three-content-node">Some content</p>
  </md-content>
</md-tab>
function TabsController($timeout) {
  $timeout(function() {
    var node = document.getElementById('three-content-node');

    node.textContent = 'another text';
  });
}

This bug only happens with 0.9.0-rc1 tag, with 0.8.3 tag works perfectly.

I wrote a minimalist Plnkr, in my case I am using a Google Maps inside a tab and I am trying to migrate from 0.8.3 to 0.9.0-rc1.

Plnkr

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions