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?
VAVenkatesh Ayothi Raman Syncfusion Team January 25, 2016 12:34 PM UTC
Hi Ricardas, Thanks for Contacting Syncfusion Support. We have analyzed and achieved your query. You can able to use Controller-As angular pattern In grid but the problem is, if you have directly accessed a Child Scope controller named “vm” in your code snippet because scope is only created for grid. Templates are used inside grid, it is like a child scope and grid is a parent scope. We suggest you to use parent scope to access a click option through Controller as “vm” and use code like below: