Angular memory leak free utils