angularjs - in angular prelink won't be called if directive use templateUrl instead of template -
in compiletemplateurl function of angular.js. 'controller: null' of derivedsyncdirective cause no controller function stored element. getcontrollers called in nodelinkfn(its prelink part) throw exception prelink won't called. see http://plnkr.co/edit/ymcurpowzmxcov0lue5s don't understand why 'controller: null' here. know it?
you need pass controller directive if want controller referenced name. first need specify controller directive in template this
<div ess-tag ng-controller="tagcontroller"> <span>test</span> </div> and in directive, add require statement, tells controller find injected controller if want controller referenced name:
require: 'ngcontroller', controller: 'tagcontroller',
Comments
Post a Comment