egomolka / vue-money-format

A Vue component that formats currency.
MIT License
15 stars 8 forks source link

Changing readme to reflect requirements #3

Open jbkhellas opened 5 years ago

jbkhellas commented 5 years ago

Just making obvious how to add the String values.

egomolka commented 5 years ago

I'm not sure that I see the rationale for this change. Can you clarify?

antonio-valdez-arce commented 5 years ago

Hello @egomolka, I agree with @jbkhellas. The params :locale and :currency-code are of type string. If you don't use the quotes, it wouldn't work.

For example: :currency-code="EUR" here, EUR refers to a variable or one of the component's properties called EUR, and you are passing the value of it.

While here: :currency-code="'EUR'", you are passing the string 'EUR'.