What is the right way to wire together 2 javascript objects?

前端 未结 6 1876
梦如初夏
梦如初夏 2020-12-28 19:34

I\'m currently facing a conundrum: What is the right way to wire together 2 javascript objects?

Imagine an application like a text editor with several different fi

6条回答
  •  礼貌的吻别
    2020-12-28 19:48

    There is also a framework for dependency injection for JavaScript: https://github.com/briancavalier/wire

提交回复
热议问题