added an option to filter the angular compiled html due to memory leaks in ng-repeat