Following are my angularJS code
=======================================================================================
var app= angular.module('store',[]);
app.controller('storeController', ['$scope', function($scope,$http) {var url="http://localhost:1234/angularjs/index.php/"; $.ajax({ method : 'GET', url: url+'Angularjs/getform', dataType: "json", success: function (res) { $scope.scores = res.data; } }); $scope.$digest(); $scope.addform = function(){ $scope.getform(); $.ajax({ method : 'POST', url: url+'Angularjs/form', data: { country : $scope.country, name : $scope.name, age:$scope.age }, dataType: "json", success: function (msg) { $scope.getform(); }, error: function (msg) { $scope.getform(); } }); } $scope.getform=function(){ $.ajax({ method : 'GET', url: url+'Angularjs/getform', dataType: "json", success: function (res) { $scope.scores = res.data; } }); }; }]); ======================================================================================================================== is there any unwanted codes in it. anybody have fix this ? On Thursday, 11 December 2014 23:16:51 UTC+5:30, Ijas Vellayicode wrote: > > I am doing a project in AngularJs with PHP and MYSQL as back end. I need > to add and retrieve student details from MYSQL database to a page. I have > created insertion form for these data, and it is working fine. data not > showing during the page load action, but the data retrieved as JSON format > in console , but not showing . when I key press on the text box on the > insertion form, then it's working fine. > > I need to get show these data during page load. any body can suggest a > solution for this issue..? Thanks in in advance > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
