Hello,
I am trying to add ng-template column to the grid, with click action. It works fine with $parent referring to controller's scope. However I cannot figure out, is it possible to use Controller-As angular pattern?
Here is my simple example:
http://jsplayground.syncfusion.com/3ulkqblh
<script type="text/ng-template" id="actionTemplate1">
<span ng-click='$parent.alertPerScope(data.Color)'> {{"click me: "+ data.Color}} //WORKS
</span>
</script>
<script type="text/ng-template" id="actionTemplate2">
<span ng-click='vm.alertPerVm(data.Color)'> {{"vm.click me: "+ data.Color}} //DOESNT WORK
</span>
</script>