diff --git a/demo/src/app/components/+tabs/demos/basic/basic.html b/demo/src/app/components/+tabs/demos/basic/basic.html index e2358923c0..5dfdea0ae6 100644 --- a/demo/src/app/components/+tabs/demos/basic/basic.html +++ b/demo/src/app/components/+tabs/demos/basic/basic.html @@ -1,6 +1,6 @@
tab id
\n" + "description": "tab id. The same id with suffix '-link' will be added to the corresponding <li> element
\n" }, { "name": "removable", diff --git a/src/tabs/tab.directive.ts b/src/tabs/tab.directive.ts index a65c379ec1..6ba4573021 100644 --- a/src/tabs/tab.directive.ts +++ b/src/tabs/tab.directive.ts @@ -15,9 +15,10 @@ import { TabsetComponent } from './tabset.component'; @Directive({ selector: 'tab, [tab]' }) export class TabDirective implements OnInit, OnDestroy { /** tab header text */ - @Input() heading: string; - /** tab id */ - @Input() id: string; + @Input() public heading: string; + /** tab id. The same id with suffix '-link' will be added to the corresponding <li> element */ + @HostBinding('attr.id') + @Input() public id: string; /** if true tab can not be activated */ @Input() disabled: boolean; /** if true tab can be removable, additional button will appear */ diff --git a/src/tabs/tabset.component.html b/src/tabs/tabset.component.html index 5cdb34675b..e1fce585a8 100644 --- a/src/tabs/tabset.component.html +++ b/src/tabs/tabset.component.html @@ -2,6 +2,7 @@