How to notify dump component when a http call is failed?
问题 Currently I have a smart component products.component.ts and one dump component products-create.component.ts . The dump component emits an event to the smart component when the user submits on create button. The products.component.ts makes a http call to save the product in the server. Now what i need to know is, how to notify the dump component that the service call is succeeded or failed? The dump component should show the error when failure and navigate to list component while success. 回答1