crisbeto / angular-svg-round-progressbar

Angular module that uses SVG to create a circular progressbar
https://crisbeto.github.io/angular-svg-round-progressbar/
MIT License
742 stars 173 forks source link

Ionic 3.8.1 node_ module issue #131

Open nissarcs opened 7 years ago

nissarcs commented 7 years ago

I am getting error Uncaught Error: Unexpected value 'RoundProgressConfig' imported by the module 'AppModule'. Please add a @NgModule annotation My app.module.ts import {RoundProgressModule, RoundProgressConfig} from 'angular-svg-round-progressbar';

@NgModule({ declarations: [ MyApp, HomePage ], imports: [ BrowserModule, IonicModule.forRoot(MyApp), RoundProgressModule, RoundProgressConfig ], bootstrap: [IonicApp], entryComponents: [ MyApp, HomePage ], providers: [ StatusBar, SplashScreen, {provide: ErrorHandler, useClass: IonicErrorHandler} ] }) export class AppModule {}

and my home.ts import {RoundProgressModule, RoundProgressConfig} from 'angular-svg-round-progressbar'; @Component({ selector: 'page-home', templateUrl: 'home.html' })

export class HomePage {

constructor(private _config: RoundProgressConfig) { _config.setDefaults({ color: '#f00', background: '#0f0' }); } }