Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: $rootScope:infdig Infinite $digest Loop #3

Open
bonucci opened this issue Jul 13, 2016 · 2 comments
Open

Error: $rootScope:infdig Infinite $digest Loop #3

bonucci opened this issue Jul 13, 2016 · 2 comments

Comments

@bonucci
Copy link

bonucci commented Jul 13, 2016

Hello, im using this directive but is giving me a Error: $rootScope:infdig
Infinite $digest Loop.

@rafaelss95
Copy link

rafaelss95 commented Jul 13, 2016

Don't use the version of Readme, it has bugs. Use the other, inside the files.

@bonucci
Copy link
Author

bonucci commented Jul 13, 2016

Yes, this is what i did, i believe the problem is comming here:
if(attrs.allowDecimal == "false") {
newValue = parseInt(newValue);
ngModel.$setViewValue(newValue);
ngModel.$render();
}

from parseInt, check the online version i posted: http://jsfiddle.net/RmDuw/896/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants