vm.gridOptions = {
enableSorting: true,
columnDefs: [
{field: 'deviceName'},
{field: 'ip'},
{
field: 'Action', enableSorting: false,
cellTemplate: '/monitoring_page/modals/buttonTemplate.html'
}
],
data: vm.dataStack,
onRegisterApi: function (gridApi) {
vm.gridApiSource = gridApi;
}
};
This is my ui-grid grid option.
in which I am declaring vm.gridApiSource but it not bounding to vm.
I am assigning var vm = this;
Please give hint why gridApiSource not bounding to this;
my plunker link http://plnkr.co/edit/Oxo8XdQCysOUvfvhD82z?p=preview
When I press delete icon and delete option on the modal. It will throw error gridApiSource is undefined.