how to set scope value using $scope.$eval() in directive?

978 views
Skip to first unread message

Eddie

unread,
May 25, 2012, 4:56:55 PM5/25/12
to ang...@googlegroups.com
Example is http://jsfiddle.net/ADukg/182/

I get the value via $scope.$eval(iAttrs.myDirective)

The problem is setting it back with oldVal.

Looks like internally there's a setter() that can do setter(oldVal), but it is not exposed?

ni...@bitcasa.com

unread,
Jun 9, 2012, 5:49:17 AM6/9/12
to ang...@googlegroups.com
I would also like to know how to do this.  It's possible to bind the value as an accessor, but I'm not sure I'd still be able to watch it that way.
Reply all
Reply to author
Forward
0 new messages