I want to use &attr in the scope option in order to expose an API for outside controllers.
This is the way i'm currently use: example
The problem is that i can only pass params inside an object, which forces the function binding to have one specific key (in the linking example, test inside hideDialog(test) is asked because i need it as key in the call close({'test':'Letho'})).
Is there any way that can omit the key when binding? So that i can directly use:
<my-dialog ng-hide="dialogIsHidden" on-close="hideDialog">
Check out the contents, {{name}}!
</my-dialog>
and
<a href class="close" ng-click="close('Letho')">×</a>
Thanks.
{'test':{param1:'',param2:''}}