且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用angular将数据值从一个页面发送(传递)到另一个页面

更新时间:2023-01-08 11:31:49

将数据值从一个页面发送到另一个页面我会读到这个,***做法是创建一个服务



http://***.com/questions/12574765/better-design-for-passing-data-to-other-ng-views-and-persisting-it-across -contr [ ^ ]
I would have a read of this, the best practise is to create a service

http://***.com/questions/12574765/better-design-for-passing-data-to-other-ng-views-and-persisting-it-across-contr[^]


您可以考虑使用广播 - http://blog.ericterpstra.com/angular-cats-part-3-communicating -with-broadcast / [ ^ ]。
You can consider using broadcast - http://blog.ericterpstra.com/angular-cats-part-3-communicating-with-broadcast/[^].