Hi All, I have updated the pnlkr.co code sample to use calculation functions from `ng-value` instead of `watch()`. Also, I provided a sample to show how to format the output. For example, to show empty string if result is zero.
Using ng-value will save you the effort of finding out which input variables need to be included in the watch()` function call. See link below: http://plnkr.co/edit/Fmqw0wp37Ndk1yuWvFkV?p=preview On Tuesday, 18 February 2014 09:56:56 UTC-5, Sander Elias wrote: > > Gi Deeksha, > > You mean something like this: > http://plnkr.co/edit/aJrXpJoIWuZALQaJdfYk?p=preview > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.