I have a directive that looks like this:
angular.module('customDirectives', [])
.directive('searchResult', function() {
    return {
        templateUrl: 'app/directives/templates/searchResult.html',
        replace: true,
        scope: {
            itemObject: "=",
            itemById: "&"
        }
    }
});
It works, but I would like to have a templateUrl like "templates/searchResult.html" since the template folder is right next to my directive file. But it seems like I need to give the location of my template depending on where is my index.html file... Is there anyway to change the templateUrl to "templates/searchResult.html"?