angular-broadcast Questions

3

Solved

I am using socket.io to enable chat in my app and i am using a service SocketService to perform all the socket stuff. When a message came then i want to trigger a function of a controller from the ...

2

I am working on a single page app, with angular and I have a need to communicate between 2 different directives which basically don't have a parent child relation. In Directive A, I have 2 places ...

5

Solved

I am trying to get $rootScope.$broadcast to refresh my view. The service is- var app = angular.module("productsApp", []) .service("serviceProvider", function ($http) { this.getDatas = function...
Ichthyic asked 26/2, 2016 at 5:22

4

Solved

It sends $broadcast once from the rootScope, but the listener ($on) gets called twice. The listener is in a controller and it uses $rootScope.$on instead of $scope.$on. Has someone had this proble...
1

© 2022 - 2024 — McMap. All rights reserved.