The best way to handle something like this:

49 views
Skip to first unread message

Cesar Vargas

unread,
Aug 24, 2012, 1:16:13 PM8/24/12
to ang...@googlegroups.com
Hi all, 

I've created a starting fiddle for what I'm trying to accomplish. http://jsfiddle.net/limitlis/n2gMU/

Basically, I have a filter that takes a number and converts to a percentage. On ng-dblclick I want to toggle the truncation of the number.

Or toggle percent:true to percent:false
<div ng-dblclick="">{{ 12 / 59 | percent:true}}</div> 

What is the best way to accomplish this?

Thanks in advanced!

Cesar Vargas

unread,
Aug 24, 2012, 4:38:48 PM8/24/12
to ang...@googlegroups.com
Here is one way of doing it. It requires making toggling a scope. Is this the best way of handling this?

Reply all
Reply to author
Forward
0 new messages