Currently, I am utilizing this account due to being logged into Facebook on my other account and not having access to my phone for the verification code process.
On another note, I am struggling to retrieve the value from an ng-model despite numerous attempts. I believe a fresh pair of eyes might be able to help me figure it out by quickly reviewing my code. Cheers...
Html:
<div class="form-group"><label class="col-sm-2 control-label">Established :</label>
<div class="col-sm-10"><input type="text" class="form-control" ng-model="established"></div>
</div>
<button class="btn btn-primary " style="float:right;" ng-click="saveApprisalDetails()" type="button"><i class="fa fa-paste"></i> Save</button>
Controller:
$scope.saveApprisalDetails=function(){
var urlgetappraisals = './dbscripts/getAppraisalsByRef.php?ref=' + ref
console.log(urlgetappraisals);
$http({
method: 'GET',
url: urlgetappraisals
}).success(function(data) {
$scope.appraisaldetails = data;
console.log(JSON.stringify(data));
var url = './dbscripts/saveApprisal.php?id=' + data[0].id;
url += '&appraisalCompany=' + appraisalCompany;
url += '&title=' + ref;
url += '&established=' + $scope.established;
console.log(url);
$http({
method: 'GET',
url: url
}).success(function(data) {
})
})
}
}
catch(e){}
}