Skip to content

Commit 6c7f311

Browse files
committed
docs: Use template projection for the last 2 tabs
Signed-off-by: Akshat Patel <[email protected]>
1 parent dc6591f commit 6c7f311

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/tabs/tabs.stories.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,20 @@ const Template = (args) => ({
2727
[followFocus]="followFocus"
2828
[isNavigation]="isNavigation"
2929
[cacheActive]="cacheActive">
30-
<cds-tab heading="one" [tabContent]="one"></cds-tab>
31-
<cds-tab heading="two" [tabContent]="two"></cds-tab>
30+
<cds-tab heading="one">Tab Content 1</cds-tab>
31+
<cds-tab heading="two">Tab Content 2</cds-tab>
3232
<cds-tab heading="three" [tabContent]="three"></cds-tab>
33-
<cds-tab heading="four">Tab Content 4</cds-tab>
33+
<cds-tab heading="four" [tabContent]="four"></cds-tab>
3434
</cds-tabs>
3535
3636
<!-- Use templates if you would like to have lifecycle hooks called when cacheActive is false -->
37-
<ng-template #one>
38-
Tab Content 1
39-
</ng-template>
40-
41-
<ng-template #two>
42-
Tab Content 2
43-
</ng-template>
44-
4537
<ng-template #three>
4638
Tab Content 3
4739
</ng-template>
40+
41+
<ng-template #four>
42+
Tab Content 4
43+
</ng-template>
4844
`
4945
});
5046
export const Basic = Template.bind({});

0 commit comments

Comments
 (0)