I am trying to lay out tabs on my website and I am using md-tab-group to achieve this. I am unable to get the ink-bar to be on the default but however, the content written on the respective tab is available. The ink-bar appears on click and not on init of the page. Below is my code
<md-tab-group dynamicHeight = "true" >
<md-tab id="hello1" label="Tab 1">
<!-- some content here -->
</md-tab>
<md-tab id="hello2" label="Tab 2">
<!-- some content here -->
</md-tab>
</md-tab-group>
The solutions that I have tried are a) selectedIndex not working in md-tab-group when dynamically generating tabs b) Angular Material Tabs SelectedIndex 0 not working
Any idea what am I overlooking?

I would recommend upgrading your angular and material versions,
md-indicates you are using an older version of the material library.Please review this stackblitz example using a current version of material library... please note the new syntax.
https://stackblitz.com/angular/earngvqxaaon?file=app%2Ftab-group-basic-example.html