将对象从一个控制器传递到另一个控制器 [英] Passing object from one controller to another controller
本文介绍了将对象从一个控制器传递到另一个控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
提前致谢。
我对angularjs很新。
我有一个主页面,我从那里打开一个包含用户列表的查找窗口。我想在查找页面上选择主页面上的用户信息。
Regard
Ehsan
Hi,
Thanks in advance.
I am very new to angularjs.
I have a main page and from where I am opening a lookup window with list of users. I want to set the user information on the main page on selecting from the lookup page.
Regard
Ehsan
推荐答案
使用ViewBag
集合。
尝试
什么是ViewData,ViewBag和TempData? - 用于在当前和后续请求之间传递数据的MVC选项 [ ^ ]
ViewData vs ViewBag vs TempData vs Session [ ^ ]
Use theViewBag
collection.
Try
What is ViewData, ViewBag and TempData? – MVC options for passing data between current and subsequent request[^]
ViewData vs ViewBag vs TempData vs Session[^]
如果你有一个母版页和子页面,就像页面结构一样。您可以使用
If you have a master page and child page like page structure. you can use
rootScope with
rootScope with
这篇关于将对象从一个控制器传递到另一个控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文