swiety85 / angular2gridster

Angular implementation of well known Gridster (no jQuery, no external libraries, only Angular and Rx.js).
https://swiety85.github.io/angular2gridster/
MIT License
203 stars 75 forks source link

Provide service using { providedIn: 'root' } #383

Open adrdilauro opened 3 years ago

adrdilauro commented 3 years ago

Hi! Great module, it's such a breeze to be able to use a native Angular library rather than injecting buggy external ones

Would it be possible to provide the service via @Injectable({ providedIn: 'root' })? We would prefer it for our use case, in order to avoid letting the service pollute other bundles.

https://angular.io/guide/providers

Thanks for the attention!

swiety85 commented 3 years ago

Feel free to provide PR.