I’m using this package: https://github.com/crisbeto/angular-svg-round-progressbar
I’d like to import and inject RoundProgressConfig
but I always get this error:
[ts] Cannot find name 'RoundProgressConfig'
It is purely a typescript error, because on runtime the value is correctly injected to the constructor below.:
import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';
import { RoundProgressConfig } from 'angular-svg-round-progressbar';
import { TabsPage } from '../pages/tabs/tabs';
@Component({
templateUrl: 'app.html',
providers: [RoundProgressConfig]
})
export class MyApp {
rootPage = TabsPage;
constructor(
platform: Platform
, private _roundProgressConfig: RoundProgressConfig
) {
_roundProgressConfig.setDefaults({
rounded: true,
responsive: true
})
}
}
I even tried adding /// <reference path="../../node_modules/angular-svg-round-progressbar/dist/round-progress.d.ts" />
but it didn’t seem to fix the problem.
What should I do?