I have a JS function in an AngularJS JS file defined below and I'm calling it.
What would be the correct syntax when calling this function within the JS file itself because I need to do a hard refresh on a grid.
FUNCTION
viewModel.getGridData = function (ajaxUrl, searchValues)
{
$http.post(ajaxUrl, { searchCriteria: searchValues })
.success(function (data)
{
viewModel.gridOptions.data = data.kvs;
});
};
CALL TO FUNCTION
viewModel.getGridData(ajaxUrl, searchValues);