AngularJS : How to access scope from ui-grid cell template? AngularJS : How to access scope from ui-grid cell template? angularjs angularjs

AngularJS : How to access scope from ui-grid cell template?


According to http://ui-grid.info/docs/#/tutorial/305_appScope, the grid has its own isaloted scope, so you need to use grid.appScope to access your application scope. The solution is to change the cell template to:

  cellTemplate: '<div>{{ "hello " + grid.appScope.world() }}</div>'