Module routes:
var switchModule = angular.module(\'switchModule\', []);
switchModule.config([\'$routeProvider\', function($routeProvider) {
$routeProvid
I had declaration of SomeController for each view partial in a single state. That caused duplicate event firing.
.state('chat', {
url: '/',
views: {
'content@': {
templateUrl: 'views/chat_wv1.html',
controller: 'ChatController'
},
'form@': {
templateUrl: 'views/chat_wv_placeholder.html',
controller: 'ViewController'
},
'sidePanel@': {
templateUrl: 'views/sidePanel_wv.html'
/* removing this part solved my issue*/
/*controller: 'ChatController'*/
}
}
})
Hope this helps some one else.