I have been working on a project which involves the use of AngularJS and MVC. I am retrieving status details data using HTTP POST, and now I need to utilize this data in another function of my controller. Despite passing the data in a scope variable named $scope.Statuses, I am encountering issues as it returns null. Can someone provide guidance on how to overcome this challenge?
AngularJS Controller
var myIssuesController = function ($scope, $sce, $http, cfpLoadingBar, deviceDetector, $filter, $modal, $log) {
$("#navMyIssues").addClass("active");
$scope.issueCommnets = null;
//Other controller variables
//function to get assigned issues
$scope.GetAssignedIssues = function () {
//Code for getting assigned issues
};
$scope.GetAssignedIssues();
$scope.getIssueStatusDetails = function (issue) {
//Function code to retrieve issue status details
};
}