Angular JS - I need to call a function in another controller from an link, which has appended through ajax success function in one controller.
I have the following code in ajax success section in one controller,
var acc_summ = '<a href="javascript:;" ng-click="test();" class="pull-right">Refresh</a>';
angular.element(acc_summ).appendTo('#itemsummeries');
I want to call test() function in another controller.
Thanks in advance