Closed mikkokam closed 9 years ago
To avoid coupling and use Polymer elements with an publish–subscribe pattern, iron-signals seems a good way to handle communication.
However, the documentation states:
Note: avoid using iron-signals whenever you can use a controller (parent element) to mediate communication instead.
Why is this? Any specific / implementation related problems here?
Should I use another library instead for pub/sub with Polymer elements?
Feel free to use it for true pub-sub, there are no known implementation problems.
The warning was there for some previous usage patterns, where pub-sub made simple things complex.
To avoid coupling and use Polymer elements with an publish–subscribe pattern, iron-signals seems a good way to handle communication.
However, the documentation states:
Why is this? Any specific / implementation related problems here?
Should I use another library instead for pub/sub with Polymer elements?