Hello sir,
I have to call the getUserCategory function on the tab in my case function is call and response is properly received but data are not updated
in the HTML( view) section and not show any data in view.sir please tell me what's the problem in my code?
/**
* @Summary:getUserCategory function, to get the User selected Category.
* @param: callback
* @return: callback(response) .
* @Description:
*/
//Defining function for getUserProfile in service
$scope.getUserCategory = function () {
var data = {
userTypeKeyId: Number(AUTH.userTypeKeyId),
fieldKeyId: Number(AUTH.defaultFieldKeyId)
};
IntermediaryDashboardService.getIntCategory(function (response) {
if (response != null) {
if (response.data.isSuccess) {
$scope.userCategories = response.data.userCategories;
}
}
}, data);
};
//HERE WE WILL DISPLAY THE DATA
<ul ng-repeat="category in userCategories" class="ng-cloak">
<li style=" padding-top: 11px;">
<a href="#" ng-click="getAlbumInIntermediary(category.categoryKeyId)">
{{category.categoriesDto.categoryName}}
</a>
</li>
</ul>