Here is my directive
(function() {
angular.module('commentsDirective', [])
.directive('mngComments', mngComments)
function mngComments() {
return {
restrict: 'AE',
scope: {
moment: '='
},
templateUrl: 'comments.html',
replace: true,
controller: 'CommentsController',
controllerAs: 'vm'
};
};
})();
Here is my file structure:
And I get this error message:
I'm not understanding this. My html file is in the same directory as my directive so why can't it find it?


./comments.html