Using web Socket Angularjs to show alerts total number


I have API to return alerts total number. I would like to using web socket (real time) to show this number in header (number > 0 – the same Facebook notification). I am using Restangular to call API. Help me about demo to using it. Thanks.


maybe u should use

then yo cna use this wrapper

you should “build” own socket io whic will push new event to you app and inside angular you just “listen to this event”

io.on('notification', function(data) {
  $scope.notifications = data;

Answered By – Milos Mosovsky

Answer Checked By – Pedro (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.