MeetmeLeave / ng-canvas-gauges

Angular2 component wrapper for the canvas-gauges library written by @Mikhus(https://github.com/Mikhus/canvas-gauges).
MIT License
38 stars 23 forks source link

Angular 4 migration #14

Open bboyz269 opened 6 years ago

bboyz269 commented 6 years ago

I have problem importing module in my angular 4 project. Will there be a migration soon? Thanks a lot!

ChandanPadalkar commented 6 years ago

I am not sure what's issue you are facing. I have faced following issue:

ERROR in Error: GaugesModule is not an NgModule

The issue is in following line, which is mentioned in doc: import {GaugesModule} from 'ng-canvas-gauges/lib';

instead of that we have to use following: import {GaugesModule} from 'ng-canvas-gauges/src';

bcoz @NgModule tag is available in "index.ts" which is inside "src" folder and not in the "lib" folder.