How do you access the directive attributes (which points to the parent scope) in the compile function?
In the linking function it is easy.
Eg: <div bs-dialog show="showDialog">
I am using code like: var show=$rootScope.$eval(tAttrs.show)
and to set it to false
$rootScope.$eval(tAttrs.show + ' = false')
In linking function I could use accessor:
scope.show() and scope.show(false)
but not in the compile function?
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/CWJ9iapXcHAJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.