Issues passing data to be inserted to php backend

Skip to first unread message

Blessing Augustine

Nov 24, 2021, 9:46:57 AM11/24/21
to Angular and AngularJS discussion
Am trying to insert records to database using angular1. when I tried the code below.

It does not work. it seems the insert functions is not properly constructed. can someone help me out. its urgents

<div ng-app="myApp" ng-controller="myCtrl">
Name:<input type="text" ng-model="name" />
Email:<input type="text" ng-model="email" />
<input type="button" value="Submit" ng-click="addData()" />
    var app = angular.module('myApp',[]);
            $"test.php", {
                    console.log("Data addes Successfully");
                    alert("Data inserts failed");


Blessing Augustine

Nov 24, 2021, 11:48:32 AM11/24/21
I found out the Problem. The issue is with Typo Error.  its should be  $scope.addData  and not  $scope.adData. i omitted d letter.

Thanks all

You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages