question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't bind to 'current' since it isn't a known property of 'round-progress'

See original GitHub issue

Hi I am trying to implement this in my app(Ionic 3) but it gives this error.

Error: Template parse errors: Can’t bind to ‘current’ since it isn’t a known property of ‘round-progress’.

  1. If ‘round-progress’ is an Angular component and it has ‘current’ input, then verify that it is part of this module.
  2. If ‘round-progress’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component

My code is home.ts -

import { NgModule } from '@angular/core'; import { RoundProgressModule, RoundProgressConfig } from 'angular-svg-round-progressbar'; @IonicPage() @Component({ selector: 'page-ownerhome', templateUrl: 'ownerhome.html', }) @NgModule({ imports: [RoundProgressModule] }) export class OwnerhomePage { current: any; max: any;

home.html -

<ion-header> <ion-navbar color="danger"> <ion-title>Home</ion-title> </ion-navbar> </ion-header> <ion-content padding> <ion-item> <round-progress [current]="current" [max]="max"></round-progress> </ion-item> </ion-content>

inside package.json -

"angular-svg-round-progressbar": "^1.2.1",

app.module.ts - import { RoundProgressModule } from 'angular-svg-round-progressbar'; imports: [ BrowserModule, RoundProgressModule, IonicModule.forRoot(MyApp) ],

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
tmdevdecommented, Apr 23, 2019

You have to import the module in your page.module.ts too 😉

0reactions
kryptonncommented, May 7, 2020

Same error here. I’ve import the module in app.module.ts, home.module.ts and also I tried to import in home.ts, but still not working.

As tmdevde said, you need to import in home.module.ts, not home.ts

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular SVG round progressbar not work for Ionic
The current version has an issue where I have mentioned below. npm install angular-svg-round-progressbar@1.1.1 --save.
Read more >
Common errors in Angular: Can't bind to since it isn't a known ...
Ever made an Angular application , opened your console and saw an error message similar to: “Can't bind to ngclass since it isn't...
Read more >
can't bind to 'label' since it isn't a known property of 'button'
In your HomeComponent template, you are trying to bind to an input on the CreateReportCardForm component that doesn't exist. In CreateReportCardForm, these are ......
Read more >
angular-svg-round-progressbar - Bountysource
Error: Template parse errors: Can't bind to 'current' since it isn't a known property of 'round-progress'. 1. If 'round-progress' is an Angular component...
Read more >
NgModule FAQ - Angular
What does "Can't bind to 'x' since it isn't a known property of 'y'" mean?link ... Angular doesn't like NgModules with circular references,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found