如何使用angular将数据值从一个页面发送(传递)到另一个页面 [英] how to Send (Pass) Data Values from one page to another using angular
本文介绍了如何使用angular将数据值从一个页面发送(传递)到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用angular
how to Send (Pass) Data Values from one page to another using angular
推荐答案
将数据值从一个页面发送到另一个页面我会读到这个,最佳做法是创建一个服务
http://stackoverflow.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://stackoverflow.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/[^].
这篇关于如何使用angular将数据值从一个页面发送(传递)到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文