Closed ashleydavis closed 9 years ago
You might need to make use of ng-transclude in your directive template to solve this problem.
Its possible. like: $owner. formatName() $owner - is a link of your controller
http://ekokotov.github.io/object-table/samples.html#/custom_rows_headers
Hi. If formatName is your controller function - just use '$owner.formatName' like I described here: http://ekokotov.github.io/object-table/samples.html#/custom_rows_headers Sorry for delay.
2015-10-13 22:35 GMT-07:00 Ashley Davis notifications@github.com:
You might need to make use of ng-transclude in your directive template to solve this problem.
https://docs.angularjs.org/api/ng/directive/ngTransclude
— Reply to this email directly or view it on GitHub https://github.com/ekokotov/object-table/issues/20#issuecomment-147940135 .
For example... the formatName function call in the following example is defined on a parent scope.
I can't seem to get this to work.