Currently, I am honing my skills in working with directives and have been struggling with this particular issue for quite some time.
The snippet of code that is causing me trouble is as follows -
Module
angular.module('wbHeader', []);
Controller
angular.module('wbHeader').controller('wbHeaderController', ['$scope', function() {
}]);
Directive
angular.module('wbHeader').directive('wbHeader', function() {
return {
transclude: true,
restrict: 'AEC',
scope: {
},
controller: 'wbHeaderController',
templateUrl: '/modules/wb-header/header.html'
};
});
Plunker Link -
https://plnkr.co/edit/OUrCm1mGb5K0wN8u2Ke9?p=preview
I have a feeling that I might be missing out on something simple, but I can't seem to pinpoint it!