|
10 | 10 | <c-card-body>
|
11 | 11 | <c-nav variant="tabs">
|
12 | 12 | <c-nav-item>
|
13 |
| - <a [active]="true" [cTabContent]="tabContent1" routerLink="./" [tabPaneIdx]="0" cNavLink> |
| 13 | + <a [cTabContent]="tabContent1" [routerLink] [tabPaneIdx]="0" cNavLink> |
14 | 14 | <svg cIcon class="me-2" name="cilHome"></svg>
|
15 | 15 | Home
|
16 | 16 | </a>
|
17 | 17 | </c-nav-item>
|
18 | 18 | <c-nav-item>
|
19 |
| - <a [cTabContent]="tabContent1" routerLink="./" [tabPaneIdx]="1" cNavLink> |
| 19 | + <a [cTabContent]="tabContent1" [routerLink] [tabPaneIdx]="1" cNavLink> |
20 | 20 | <svg cIcon class="me-2" name="cilUser"></svg>
|
21 | 21 | Profile
|
22 | 22 | </a>
|
23 | 23 | </c-nav-item>
|
24 | 24 | <c-nav-item>
|
25 |
| - <a [cTabContent]="tabContent1" routerLink="./" [tabPaneIdx]="2" cNavLink> |
| 25 | + <a [cTabContent]="tabContent1" [routerLink] [tabPaneIdx]="2" cNavLink> |
26 | 26 | <svg cIcon class="me-2" name="cilCode"></svg>
|
27 | 27 | Contact
|
28 | 28 | </a>
|
29 | 29 | </c-nav-item>
|
30 | 30 | </c-nav>
|
31 |
| - <c-tab-content #tabContent1="cTabContent" [activeTabPaneIdx]="1" cRounded="bottom"> |
| 31 | + <c-tab-content #tabContent1="cTabContent" [activeTabPaneIdx]="0" cRounded="bottom"> |
32 | 32 | <c-tab-pane class="p-3 preview" role="tabpanel">
|
33 | 33 | This is some placeholder content the <strong>Home</strong> tab's associated content. Clicking another tab
|
34 | 34 | will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the
|
|
55 | 55 | <c-card-body>
|
56 | 56 | <c-nav variant="tabs">
|
57 | 57 | <c-nav-item *ngFor="let nav of panes; index as i; first as isFirst; last as isLast">
|
58 |
| - <a [active]="isFirst" [cTabContent]="tabContent2" [disabled]="isLast" routerLink="./" [tabPaneIdx]="i" |
| 58 | + <a [cTabContent]="tabContent2" [disabled]="isLast" [routerLink] [tabPaneIdx]="i" |
59 | 59 | cNavLink>
|
60 | 60 | <svg cIcon class="me-2" name="cilHome"></svg>
|
61 | 61 | {{nav.name}}
|
62 | 62 | </a>
|
63 | 63 | </c-nav-item>
|
64 | 64 | </c-nav>
|
65 |
| - <c-tab-content #tabContent2="cTabContent" [activeTabPaneIdx]="1" cRounded="bottom"> |
| 65 | + <c-tab-content #tabContent2="cTabContent" [activeTabPaneIdx]="0" cRounded="bottom"> |
66 | 66 | <c-tab-pane *ngFor="let pane of panes; index as i;" class="p-3 preview">
|
67 | 67 | This is some placeholder content the <strong>{{pane.name}}</strong> tab's associated content. Clicking
|
68 | 68 | another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to
|
|
81 | 81 | <c-card-body>
|
82 | 82 | <c-nav variant="pills">
|
83 | 83 | <c-nav-item>
|
84 |
| - <a [cTabContent]="tabContent3" routerLink="./" [tabPaneIdx]="0" cNavLink> |
| 84 | + <a [cTabContent]="tabContent3" [routerLink] [tabPaneIdx]="0" cNavLink> |
85 | 85 | <svg cIcon class="me-2" name="cilHome"></svg>
|
86 | 86 | Home
|
87 | 87 | </a>
|
88 | 88 | </c-nav-item>
|
89 | 89 | <c-nav-item>
|
90 |
| - <a [cTabContent]="tabContent3" routerLink="./" [tabPaneIdx]="1" cNavLink> |
| 90 | + <a [cTabContent]="tabContent3" [routerLink] [tabPaneIdx]="1" cNavLink> |
91 | 91 | <svg cIcon class="me-2" name="cilUser"></svg>
|
92 | 92 | Profile
|
93 | 93 | </a>
|
94 | 94 | </c-nav-item>
|
95 | 95 | <c-nav-item>
|
96 |
| - <a [active]="true" [cTabContent]="tabContent3" routerLink="./" [tabPaneIdx]="2" cNavLink> |
| 96 | + <a [cTabContent]="tabContent3" [routerLink] [tabPaneIdx]="2" cNavLink> |
97 | 97 | <svg cIcon class="me-2" name="cilCode"></svg>
|
98 | 98 | Contact
|
99 | 99 | </a>
|
100 | 100 | </c-nav-item>
|
101 | 101 | </c-nav>
|
102 |
| - <c-tab-content #tabContent3="cTabContent" cRounded="bottom"> |
| 102 | + <c-tab-content #tabContent3="cTabContent" cRounded="bottom" [activeTabPaneIdx]="0"> |
103 | 103 | <c-tab-pane aria-labelledby="docs-code-preview" class="p-3 preview" role="tabpanel">
|
104 | 104 | This is some placeholder content the <strong>Home</strong> tab's associated content. Clicking another tab
|
105 | 105 | will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the
|
|
0 commit comments