In Angular Prevent JS memory leaks by usuing "take" of rxjs operator