BTMorton / angular2-grid

A drag/drop/resize grid-based plugin directive for angular2
https://bmorton.co.uk/angular/
MIT License
354 stars 159 forks source link

Unable to rendor rows and columns #227

Open k11k2 opened 7 years ago

k11k2 commented 7 years ago

My output: uigrid

My Html: tsfile

My Ts: ts2

if i add [(ngGridItem)]="forecasts.config" console

Very new to this typescript as well as angular2-grid, let me know where did I mistaken.

BTMorton commented 7 years ago

You want it to be [(ngGridItem)]="forecast" rather than forecasts as that's your array item. Currently, you're binding the item config to the whole array.

k11k2 commented 7 years ago

@BTMorton what " box.config " does ? what role config play there?

As you suggested [(ngGridItem)]="forecast" didn't work.

BTMorton commented 7 years ago

Sorry, it's [(ngGridItem)]="forecast.config". Apologies it's taken me so long to reply