阅读背景:

Angular使用回调与使用broadcast / emit / on范例

来源:互联网 

My question is regarding best practices between using a more direct callback structure vs. event broadcasting and listening. I had not been using the broadcast/emit/on event propagation framework. Rather I had been creating a callback register and firing registered callbacks when a known event occurs (at the source of the event). This is all done via services. My question is regarding best practices between




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: