mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
(Contacts) Reset the search filter when component destroyed to ensure the search will reset on route changes
This commit is contained in:
parent
f56c989563
commit
2752cd7a45
|
@ -77,6 +77,9 @@ export class ContactsComponent implements OnInit, OnDestroy
|
||||||
*/
|
*/
|
||||||
ngOnDestroy(): void
|
ngOnDestroy(): void
|
||||||
{
|
{
|
||||||
|
// Reset the search
|
||||||
|
this._contactsService.onSearchTextChanged.next('');
|
||||||
|
|
||||||
// Unsubscribe from all subscriptions
|
// Unsubscribe from all subscriptions
|
||||||
this._unsubscribeAll.next();
|
this._unsubscribeAll.next();
|
||||||
this._unsubscribeAll.complete();
|
this._unsubscribeAll.complete();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user