prevent multiple loading of the same template.

The issue is that the same template was loaded as mush as the directive was used.

My assumption is that the templateCache service didn't had a chance to save the template from the first fetch so he keep sending http requests each time.

solution:
save array of the promises and just if the template key is not in the array, fetch it.