I have a class like this:
export class TableColumn {
columnName: string;
isToFilter: boolean;
isToSort: boolean;
isLink: boolean;
linkUrl: string;
columnData: any[];
constructor(
columnName: string,
isToFilter: boolean,
isToSort: boolean,
isLink: boolean,
linkUrl: string,
columnData: any[]) {
this.columnName = columnName;
this.isToFilter = isToFilter;
this.isToSort = isToSort;
this.isLink = isLink;
this.linkUrl = linkUrl;
this.columnData = columnData;
}
}
You can see there is an array property here - columnData. My problem is when I use *ngFor directive to iterate over array of instances of this class like this:
ngFor="let column of tableColumns"
the directive iterate not only through content of tableColumns but through content of columnData property in every instance as well.
I would like to know how to not iterate through content of property columnData.
columnvariable get's values fromColumnDataof eachtableColumn?