Components: md tab content not working

Created on 15 Nov 2016  路  4Comments  路  Source: angular/components

I am able to get the tab headers through md tab & md-tab-label

But md-tab-content not showing. Its not rendering the view. Tried md-tab-body also.

My code:

    <md-tab-group>
      <md-tab>
        <template md-tab-label>Details</template>
        <template md-tab-content>
          Tab 1
        </template>
      </md-tab>
      <md-tab>
        <template md-tab-label>Feed</template>
        <template md-tab-content>
          Tab 2
        </template>
      </md-tab>
    </md-tab-group>

Output:

tabs

Html rendered code as:

<(adding intentionally)div _ngcontent-jdk-10="" class="md-tab-body" role="tabpanel" ng-reflect-id="md-tab-content-0-0" id="md-tab-content-0-0" aria-labelledby="md-tab-label-0-0">




Please HELP!

Most helpful comment

md-tab-content has been removed. You have how to use tabs in the doc:
https://github.com/angular/material2/blob/master/src/lib/tabs/README.md

All 4 comments

md-tab-content has been removed. You have how to use tabs in the doc:
https://github.com/angular/material2/blob/master/src/lib/tabs/README.md

Please see the changelog when there is a new release:
https://github.com/angular/material2/blob/master/CHANGELOG.md

Thanks a ton @jelbourn @ocarreterom for your quick response.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hiblton picture Hiblton  路  3Comments

Miiekeee picture Miiekeee  路  3Comments

alanpurple picture alanpurple  路  3Comments

savaryt picture savaryt  路  3Comments

constantinlucian picture constantinlucian  路  3Comments