Custom Widget : Formating Input currency

1
+1
-1

Hi , i want to format my input currency when i press key automaticaly ex
Example

i try to create my custom widget but i doesn't work. GITHUB

my template

  1. <div>
  2. <input format-as-currency ng-model="value" type="text">
  3. </div>

my controller
$scope.value = '' // currency input value**

module require
bcherny/formatAsCurrency

Assets
format-as-currency.js

Comments

Submitted by Sean McP on Tue, 08/30/2016 - 22:22

A Tip on displaying CODE/LOGS correctly in Posts:

Do not use the Supplied Buttons above, for some reason they refuse to work correctly, and despite bringing it to Bonitasofts attention, it's low priority.

To Show Code/Logs correctly use

< code >
your code/log
< /code >

removing the spaces to allow the showing of code/logs correctly as here:

  1. your code/log

Thanks and regards
Seán

Submitted by DrakunDry on Wed, 08/31/2016 - 10:27

it's cool like that

No answers yet.
Notifications