I seem to have encountered a rather simple issue that I just can't seem to troubleshoot.
reviewCtrl.html
angular.module('liveAPP.review',['LiveAPP.factory'])
.controller('reviewCtrl', ['$scope','$http','dataFactory','$location',reviewCtrl])
.directive("datePicker", function() {
return {
restrict: "E",
template: '<div>I want this content to be displayed in my review view</div>'
}
})
review.html
<datePicker></datePicker>
My expectation for this code is to have the text "I want this content to be displayed in my review view" appear on the corresponding controller's view. The view is inserted into the <div ng-view></div>
in my index.html file. Although this example is very straightforward, it seems that it's not functioning as anticipated. The routes are correctly configured but for some reason, it's not working as expected. Any thoughts on why this could be happening?