You can set the position value when projecting content using the attribute md-tab-body.
This value positionmust be set with typescript code.
<md-tab-group>
<md-tab label="Tab 1" >
<div md-tab-body #tab >
<button (click)="clickedMe()">Clicked</button>
</div>
</md-tab>
<md-tab label="Tab 2">Content 2</md-tab>
</md-tab-group>
Typescript code
@ViewChild('tab') tab: TemplateRef;
ngAfterViewInit(){
console.log(this.tab);
this.tab.position = 100;
}
ngAfterContentInit(){
console.log(this.tab);
}
clickedMe(){
console.log(this.tab);
}
Live demo
source
share