This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
the prelink function won't be called if the directive has templateUrl and controller property also. #3482
Comments
I use AngularJS v1.1.5 |
IgorMinar
pushed a commit
to IgorMinar/angular.js
that referenced
this issue
Aug 10, 2013
This fixes regression introduced by angular#3514 (5c56011) - this commit is being reverted here and a better fix is included. The regression caused the controller to be instantiated before the isolate scope was initialized. Closes angular#3493 Closes angular#3482 Closes angular#3537
chirayuk
added a commit
to chirayuk/angular.js
that referenced
this issue
Aug 21, 2013
This fixes regression introduced by angular#3514 (9c51d50) - this commit is being reverted here and a better fix is included. The regression caused the controller to be instantiated before the isolate scope was initialized. Closes angular#3493 Closes angular#3482 Closes angular#3537 Closes angular#3540
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: