Skip to content

Commit 11f9837

Browse files
committed
Cleanup Hierachical Grid Validator sample.
1 parent e6fe477 commit 11f9837

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/app/hierarchical-grid/hierarchical-grid-validator-service/hierarchical-grid-validator-service.component.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ export class HierarchicalGridValidatorServiceComponent implements OnInit {
1616

1717
public ngOnInit(): void {
1818
this.hierarchicalGrid.data = CUSTOMERS;
19-
for (const item of this.hierarchicalGrid.data) {
20-
const names = item.CompanyName.split(' ');
21-
item.FirstName = names[0];
22-
item.LastName = names[names.length - 1];
23-
item.FullAddress = `${item.Address}, ${item.City}, ${item.Country}`;
24-
item.PersonelDetails = `${item.ContactTitle}: ${item.ContactName}`;
25-
item.CompanysAnnualProfit = (100000 + (Math.random() * Math.floor(1000000))).toFixed(0);
26-
}
2719
}
2820

29-
}
21+
}

0 commit comments

Comments
 (0)