标签: angular
用户上传图像后,我需要将路由切换到另一个组件以显示响应数据。如何在新组件中获取先前HTTP请求的响应数据?
答案 0 :(得分:0)
使用Input和Ouput指令,您可以将数据从一个组件传递到另一个组件。
Input
Ouput
检查一下。这应该有所帮助。
https://angular.io/guide/component-interactionanother
实施此功能,如果您遇到问题,可以随时为您提供帮助。