I'm developping an application with angular 5.
I need to stop all http queries when changing/detroyiog components.
example : i open ListUsersComponent, a httpquery is started to get the list of users, before that query is finished i opened ListAdminsComponent. so in network (browser) i have the query getting the list of users query still pending.
I want to stop it when i destroy ListUsersComponent.
how stop queries when i change the component?