This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
the prelink function won't be called if the directive has templateUrl and controller property also. #3482
Closed
Description
it may caused by set derivedSyncDirective with 'controller: null' in compileTemplateUrl.
controll is null cause 'getControllers' fail which is called in 'linkFn(scope, $element, attrs,linkFn.require && getControllers(linkFn.require, $element));'(nodeLinkFn).
if I remove this part the prelink will work. DOn't know why 'controller: null' there.
I create a demo here http://plnkr.co/edit/yMcurPowZmxCOv0luE5s?p=preview
Metadata
Metadata
Assignees
Labels
No labels