template was modified to search first in the $templateCache.