Re:Polymer 2.4: Paving the way for 3.0 and TypeScript support
by aphextron on Monday January 29, 2018 @02:48PM
(#16260119)
Can anyone reccomend a good state management scheme for building large scale Polymer apps? My team has gone this route of building small custom elements for everything, but getting them to communicate has been a pain. AngularJS solved that really well I think with $broadcast and $emit, but we'd rather stay away from monolithic frameworks.
[ Parent
| on HN ]
Re:Polymer 2.4: Paving the way for 3.0 and TypeScript support
by ergo14 on Monday January 29, 2018 @02:51PM
(#16260136)
Well you can do `polymer-redux`, `polymer-uniflow` or mixins (https://www.captaincodeman.com/2017/07/06/managing-state-in-...).
I went with redux.
You could I guess technically you could implement $broadcast - but that would be slow same as with angular, as for $emit you can just emit standard events.
Re:Polymer 2.4: Paving the way for 3.0 and TypeScript support
by westbrook on Monday January 29, 2018 @03:15PM
(#16260287)
This could also be of benefit to your research: https://gist.github.com/kevinpschaaf/995c9d1fd0f58fe021b174c...