is 

IntermediaryDashboardService.getIntCategory returning a promise?



On Thursday, August 17, 2017 at 11:33:14 AM UTC-5, Kapil Soni wrote:
>
> 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);};
>
>
> <https://lh3.googleusercontent.com/-e81kzBry-Bo/WZXEopUM_2I/AAAAAAAAADs/uL5Z-7sWBQIKmfao3PRLuFeNj5t1ILdwACLcBGAs/s1600/TQL6A.png>
>
> //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>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to