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

knockout-3.4.0.js has an error when running the shop #2

Open
rickyspires opened this issue Apr 1, 2016 · 1 comment
Open

knockout-3.4.0.js has an error when running the shop #2

rickyspires opened this issue Apr 1, 2016 · 1 comment

Comments

@rickyspires
Copy link

Hello.

I like the look of you shop in knockout js.

I am trying to run it with the latest knockout-3.4.0.js but i get this error in my console

TypeError: $data.price(...).formatMoney is not a function
with($context){with($data||{}){return{'foreach':function(){return products }}}}

any thoughts on what it might be ?

Thanks

@veloper
Copy link
Owner

veloper commented Apr 12, 2016

You'll need to include this library for that method to be defined.

https://github.com/veloper/ko-js-examples/blob/master/app/assets/javascripts/libs/formatMoney.js

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