You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
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
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.
Activity
stevenguan commentedon Aug 8, 2013
I use AngularJS v1.1.5
fix($compile): always instantiate controllers before pre-link fns run
fix($compile): always instantiate controllers before pre-link fns run
fix($compile): correct controller instantiation for async directives
fix($compile): correct controller instantiation for async directives