Skip to main content

Posts

Showing posts with the label angularjs ng grid crud operations example code

AngularJs ng-grid CRUD Operations Example Code

ng-grid CRUD Operations full code //This is current loged user UIds. var uid = parseInt(session().UID); var app = angular.module( 'companyApp' , [ 'ngGrid' ]); app.service( 'getCompanyService' , function ($http) {     this .getCompanies = function () {         return $http({             method: 'GET' ,             url: baseURL + 'Api/CompanyPref/Get/' + uid         });     };     this .updateCompany = function (comp) {         return $http.post(baseURL + "Api/CompanyPref/UpdateCompany/" + uid, comp)            .success( function (data, status, headers, config) {             ...