阅读背景:

订阅方法不会对更改做出反应[Angular 2]

来源:互联网 

I've got the method in my app.component that changes languages in my LangService. When the change occurs the LangService should then response with Observable object to all my other components as I have subscribed to changes in all my components. Unfortunately, it's not happening. It only response to the app.component that called the function for changing the language. I'm not sure where I have made a mistake. Maybe I'm just misunderstanding the whole concept as I'm new to Angular. I've got the method in my app.component that ch




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

分享到: