I'm having a hard time developing a medium sized javascript application using Promises and Browserify. What I'd like to know is how to best design an application where the models need to be loaded asynchronously and are require'd when needed? It's starting to seem tedious since many are domain models, is it common to instead initial load these so not everything needs to be wrapped within a then statement? I'm not sure, I don't know where to start since almost all articles explain how to design promises themselves, not how to design the application around them. I'd appreciate any resources to help out.
Aucun commentaire:
Enregistrer un commentaire