M
M
mitaichik2016-01-07 16:21:44
Angular
mitaichik, 2016-01-07 16:21:44

Does Angular 1 have a separate event system?

Hello. We use Angular 1 (1.4.8). It is necessary to organize an event system (on, off, emit), for example, so that a service thread creates its own bus, emits events there, and other components can subscribe to them.
Does Angular have a thread for this out of the box? As I understand it, it has such functionality only in $scope, but we need to organize this not in the context of scopes.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-01-07
@mitaichik

it has similar functionality only in $scope

this is an internal mechanism, it is better not to use it at all just like that.
There is nothing out of the box, but there are quite a few modules.
ps It's not worth tying the UI to events (read about redux and look at ngRedux, in principle there is an action dispatcher there).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question