Skip to content
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

@stevenguan

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

Activity

  1. stevenguan commented on Aug 8, 2013

    @stevenguan
    Author

    I use AngularJS v1.1.5

  2. added a commit that references this issue on Aug 9, 2013
    5c56011
  3. added 4 commits that reference this issue on Aug 9, 2013
    9c51d50
    d32aa8d
  4. added a commit that references this issue on Aug 12, 2013
    c173ca4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions