Hi
I think you should have a look to AngularJS filter instead of directive.
Manu
Le 28 mai 2014 12:16, "balamurugan r" <[email protected]> a écrit :

>
> Hi guys , i'm new to angularjs. i want to format the value shown below
> with angular directive.. can someone please help me to achieve this
> functionality in best way. Thanks
>
> scenario #1
>
> input:  223000.56
> output: +$2,23,000.56
>
> scenario #2
>
> input : 0.00
> output: $0.00
>
> scenario #3:
>
> input: -6748.45
> output: -$6,748.45
>
> cheers
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to