I want to give path of templateUrl as a seprate .jade file. But its showing 500 err and Error: [$compile:tpload] .
Below is the code in my directive
app.directive('personRecord',['$http',function(http){
return{
restrict : 'AE',
templateUrl : '../../views/template.jade',
link : function(scope,ele,attr){
}
}
}]);
and my folder structure is like below.
bin
node_modules
public
|-- js
|-- main.js
routes
views
|-- template.jade
|-- index.jade
app.js
package.json
Please help me out in this ! What am I missing here !