What's the correct way to communicate between controllers in AngularJS?

前端 未结 19 2441
猫巷女王i
猫巷女王i 2020-11-21 22:02

What\'s the correct way to communicate between controllers?

I\'m currently using a horrible fudge involving window:

function StockSubgro         


        
19条回答
  •  盖世英雄少女心
    2020-11-21 22:47

    GridLinked posted a PubSub solution which seems to be designed pretty well. The service can be found, here.

    Also a diagram of their service:

    Messaging Service

提交回复
热议问题