We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 549dd09 + 7145880 commit a6d4390Copy full SHA for a6d4390
app/ui-category/segmented-bar/basic-segmented-bar/basic-segmented-bar.component.ts
@@ -14,10 +14,9 @@ export class BasicSegmentedBarComponent {
14
constructor() {
15
this.myItems = [];
16
for (let i = 1; i < 5; i++) {
17
- let tmpSegmentedBar: SegmentedBarItem = <SegmentedBarItem>new SegmentedBarItem();
18
- tmpSegmentedBar.title = "Tab " + i;
19
-
20
- this.myItems.push(tmpSegmentedBar);
+ const item = new SegmentedBarItem();
+ item.title = "Tab " + i;
+ this.myItems.push(item);
21
}
22
23
0 commit comments