Hi ,
Please see below sudo code -
This issue became show stopper for us. Kindly help us on this
//Html code
<ul class="notifyLists">
<li ng-class="item.newNotification ? 'statusNeg' : ''"
ng-repeat="item in notificationContent.data">
<div class="row marginNone">
<span
class="pull-right">{{item.notificationData.notificationMessage}}</span>
</div>
</li>
</ul>
//Angular Controller
//Comet Technology - Getting Server push data here
$scope.notificationContent.data = [];
function subscribe(station){
var channel =
'/cometd/notificationpanel/CometChannel';
console.log("Subscribe message in
"+channel);
setTimeout(function(){
$scope.subscription.push(cometd.subscribe(channel, function(msg) {
notificationResponseData =
JSON.parse(msg);
$scope.notificationContent.data = notificationResponseData;
}))
}, 100)
}
On Wednesday, November 4, 2015 at 9:59:48 AM UTC-6, Ginie Kim wrote:
>
> and then i don't understand reverse ajax.
>
> maybe don't you have to use promise?
>
>
> 2015년 11월 5일 목요일, Ginie Kim<[email protected] <javascript:>>님이 작성한 메시지:
>
>> Hi~
>>
>> Firstly, I recommend that you validate json format for response data.
>>
>> in here, http://jsonlint.com
>>
>> Good luck to you.
>>
>> 2015년 11월 5일 목요일, Sander Elias<[email protected]>님이 작성한 메시지:
>>
>>> Hi ...
>>>
>>> Hard to help you, when you are not providing a sample of what you are
>>> doing.
>>> Best thing, provide us with a working plunk/fiddle that shows your
>>> problem.
>>>
>>> Regards
>>> Sander
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "AngularJS" 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 http://groups.google.com/group/angular.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.