I built an angular front-end and am attempting to port it to a Express project, and am having a bit of trouble porting the directives I made.
One of the directives not being found is my navigation elements, which in my index.ejs
is:
<navigation></navigation>
The directive in my angularApp.js
is:
app.directive('navigation', function() {
return {
restrict: 'E',
templateUrl: 'navigation.html'
}
});
I'm getting an error: "Error: [$compile:tpload] http://errors.angularjs.org/1.2.26/$compile/tpload?p0=navigation.html
Am I linking the .html
incorrectly in my directive? I generated the Express project using Express' generator.