I\'m trying to write my first AngularJS directive: one involving the link function. The directive is being loaded, but when I use it in my page the link<
Another reason this could happen for people is that there is a runtime error in one of the other compilation phases for the directive.
ng.module(MODULE).directive('myDirective', [() => {
return {
link() {
// Never getting here
},
template() {
// Error here would mess things up
},
controller() {
// error here would mess things up
}
};
}]);