is bloc available for AngularJS ?
Hi @jagdishjadeja 馃憢
Thanks for opening an issue!
There currently isn鈥檛 a JavaScript library but if it鈥檚 something you would like, I would love to hear more about why. The main reason I haven鈥檛 made one is because dart can be used for web with AngularDart (and soon Flutter). Thanks 馃憤
Closing for now since there doesn't seem to be much interest in the topic. I'm happy to reopen this in the future if people think it's worthwhile discussing 馃憤
We're starting an Angular (standard, not dart) project and since our mobile apps use Flutter/Dart with the BLoC pattern, we're exploring using BLoC in the Angular app as well. I like some of the patterns these plugins expose, so might at a minimum adapt our code to use those patterns. If it becomes something that could be usable by others, I'll see if I can't break it out publicly as a library or external module.
@localpcguy that鈥檚 awesome! Keep us updated 馃槃
I don鈥檛 think it would be that much effort to port the core bloc library over to js. I can try to mess with it when I have some time later this week especially if it would benefit others.
While we're definitely moving forward with the BLoC pattern, I don't know if we'll use this specific implementation. The limitation of just one stream in, one stream out doesn't match how we've been using BLoCs. I understand the thinking behind it (single responsibility), but sometimes sharing functionality in a bloc file while allowing multiple output streams or multiple incoming events is helpful from an organizational perspective and splitting that up to multiple bloc files would add complexity without a lot of gain, in our perspective.
Just wanted to provide that update, I know this comment isn't specific to JS but didn't want you to go through a bunch of work for us and not have us take advantage of it. I have still been using pieces of this code as references, so it's still helpful, thanks!
@localpcguy thanks for the update and best of luck!
For anyone interested: https://github.com/felangel/bloc.js