Wanted to access a function from my custom cellTemplate. For that, i am using grid.appScope. Following is the code :
$scope.test = function(){
alert('a');
};
columnDefs: [
{ field: 'name', displayName: 'Name', cellTemplate: '<div ng-click="grid.appScope.test()">ABCDEFGH</div>' },
{ field: 'id', displayName: 'ID' }
]
Can anyone tell me what is the issue with the above code ?