我有以下文件夹结构:
-root/
--root.controller.js
--root.module.js
--root.routes.js
--root.html
--filters/
----filters.controller.js
----filters.module.js
----filters.routes.js
----filters.html
--tableData/
----tableData.controller.js
----tableData.module.js
----tableData.routes.js
----tableData.html
--graph/
----graph.controller.js
----graph.module.js
----graph.routes.js
----graph.html
我想知道以最佳方式管理来自每个控制器的呼叫的最佳方法。我的意思是,从过滤器中,我可以更改下拉列表中的选择或更新其他字段值,然后我会更新 tabledata 上的数据。如果我更改 tabledata 上的选择,我会更新图表。根 url 是'/root/{itemId}',我不能在查询字符串上添加一些其他值。如何管理内部变量和方法?
多谢