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

Compatibility with Angular 5 #292

Closed Smitha-Patil closed 6 years ago

Smitha-Patil commented 6 years ago

Does this library work for Angular 5? We are really looking forward to using it.

BTMorton commented 6 years ago

Yes, this library will work fine with Angular v2 through v5. Support for v6 is in the works and I'm planning to incorporate the angular2-grid-demo project as well, using the cli library support.

Smitha-Patil commented 6 years ago

Thank You. Could you please tell me the changes i need to do for angular-cli support as i do not have a system.js. I am getting an error saying ngGrid and ngGridItem is not known.

BTMorton commented 6 years ago

I didn't have to do anything specific to get it working. Just npm installed it and included NgGridModule in the AppModule imports. You can see my CLI demo project here: https://github.com/BTMorton/angular2-grid-demo

It may be that the package versions are mismatched, which could cause npm dependency issues, but that shouldn't cause the issue you're seeing above.

Smitha-Patil commented 6 years ago

Hey, Thanks for the example. I had imported the NgGridModule in a wrong module. My mistake :).