### Dynamic Columns

This sample demonstrates how to create dynamic columns in a FlexGrid control using Angular's ngFor directive on the wj-flex-grid-column component, where ngFor is bound to the columns array of objects defining column properties.

The column definition objects may optionally specify Angular 2 component classes that are used for rendering or editing column cells, in the cellTemplate and cellEditTemplate properties respectively. The wjFlexGridCellTemplate and ngIf directives on template elements are used to optionally apply these templates to columns. The templates contain wj-component-loader component, which performs loading of cell renderer/editor components using their class references.