[英]Pass api response from one component to another component in Angular
I have a component named server and another component named process.我有一个名为 server 的组件和另一个名为 process 的组件。 I am taking response from server.service.ts to server.component.ts and I want that response in process.component.ts.
我正在从 server.service.ts 接收响应到 server.component.ts,我希望在 process.component.ts 中得到响应。 Any ideas on how this can be achieved.
关于如何实现这一点的任何想法。
ps the API response is n array of strings. ps API 响应是 n 个字符串数组。
There are many way to pass informations from one component to another component:有很多方法可以将信息从一个组件传递到另一个组件:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.