i want to return something like <i class="class1 for + (green) / class2 for - (red)>$<bigger font>value without decimal</big>.<small font>decimal valus(2)</small font>
On Wednesday, May 28, 2014 9:24:24 PM UTC+10, balamurugan r wrote: > > ok. Can you please help me to do that.. Anyway i need to apply css right ? > > On Wednesday, May 28, 2014 8:26:33 PM UTC+10, Emmanuel DEMEY wrote: >> >> 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.
