Closed szechyjs closed 6 years ago
If I don't input a complete NgGridConfig or NgGridItemConfig I get the following type of errors.
NgGridConfig
NgGridItemConfig
TypeError: Cannot create property 'col' on string ''
https://github.com/BTMorton/angular2-grid/blob/master/src/directives/NgGridItem.ts#L72
In my opinion, if a null or empty object is passed to the ngGrid or ngGridItem attribute, the directive should just use all of the defaults.
ngGrid
ngGridItem
If I don't input a complete
NgGridConfig
orNgGridItemConfig
I get the following type of errors.https://github.com/BTMorton/angular2-grid/blob/master/src/directives/NgGridItem.ts#L72
In my opinion, if a null or empty object is passed to the
ngGrid
orngGridItem
attribute, the directive should just use all of the defaults.