import { Component, ViewChild } from '@angular/core';

import { SkyGridComponent } from '../grid.component';

@Component({
  selector: 'sky-test-cmp',
  template: `
    <sky-grid [data]="data">
      <sky-grid-column field="column1" heading="Column1" />
    </sky-grid>
  `,
})
export class GridUndefinedTestComponent {
  @ViewChild(SkyGridComponent)
  public grid: SkyGridComponent;

  public data: any[] = undefined;
}
