app.controller('TestController', function($scope, $http) { $scope.name = "Pritom Kumar"; $scope.posts = ["a", "b"]; $http.post('lists_json', {id: 1, name: $scope.name}). success(function(response, status, headers, config) { console.log("Success=" + response); }). error(function(response, status, headers, config) { console.log("Error=" + response); }); $http.get('lists_json?id=1&name='+$scope.name+"&list="+$scope.posts). success(function(response, status, headers, config) { console.log("Success=" + response); }). error(function(response, status, headers, config) { console.log("Error=" + response); }); });
Friday, November 4, 2016
Angularjs ajax get or post method example from controller
Subscribe to:
Post Comments (Atom)
ReplyDeleteThank you for sharing valuable information.
Angularjs online training
Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating.
ReplyDeleteDigital Marketing Training in Chennai
Digital Marketing Course in Chennai
Mmorpg oyunları
ReplyDeleteInstagram takipçi satin al
Tiktok jeton hilesi
Tiktok jeton hilesi
ANTALYA SAC EKİMİ
referans kimliği nedir
instagram takipçi satın al
Metin Pvp
MT2 PVP
SMM PANEL
ReplyDeletesmm panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
https://www.beyazesyateknikservisi.com.tr/
Servis
tiktok jeton hilesi
Good text Write good content success. Thank you
ReplyDeletebetmatik
slot siteleri
bonus veren siteler
kibris bahis siteleri
poker siteleri
tipobet
betpark
kralbet
kocaeli
ReplyDeletekonya
kuşadası
kütahya
malatya
REDNDZ
başakşehir
ReplyDeletebeykoz
gölcük
kütahya
bandırma
K66PU