Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

Ionic $state doesn't trigger socket emit?

$
0
0

@eldy wrote:

.controller('completed', function($scope,$state,socket) {

socket.on('connect', function(data) {
      socket.emit('order', 'test');
});

});

not sure why I need to refresh then only can see the emit got executed. I use $state.go('order') to come to this page.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles