Spring web flow提供了额外的bean作用域,如flow、conversation、flash等。我可以使用var在flow.xml中定义flow作用域bean,也可以将值设置为新的作用域变量。如何在spring应用程序上下文xml文件中定义它。我尝试使用这个模式:
<bean id="abc" class="abc" scope="flow"/&
我使用的是angularjs版本1.5,目标是使用组件来监听服务更新。this.updatedBoolean = this.myService.myBoolean <--- I need to subscribe to the service我尝试使用angularJS来订阅来自服务的传入更新,以更新我的组件变量。