add public prefix to html2js conf

This commit is contained in:
Sam 2016-04-27 17:46:53 +03:00
parent 1ddf23a848
commit 42e9b7564e
2 changed files with 7 additions and 7 deletions

View file

@ -227,7 +227,7 @@ module.exports = function(grunt) {
},
html2js: {
options: {
base: 'NodeForm',
base: 'public',
watch: true,
module: 'NodeForm.templates',
singleModule: true,

View file

@ -33,7 +33,7 @@ angular.module('forms').directive('fieldDirective', ['$http', '$compile', '$root
templateUrl = templateUrl+type+'.html';
}
return $templateCache.get('../public/'+templateUrl);
return $templateCache.get(templateUrl);
};
return {