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.

On a directive, using controller, templateUrl, and pre/post link causes an error. #3493

Closed
@jelbourn

Description

@jelbourn

When creating a directive that has a controller, a templateUrl, and a compile function that returns a linking pre/post pair, an error is thrown.

The error does not occur if using template instead of templateUrl, if you use a single (post) link function, or if you omit the controller.

The error is "No controller: [directive name]"

http://jsbin.com/azomeh/4/edit

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