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.

Directive, replace, external template, ng-Switch controller #3792

Closed
@martijndwars

Description

@martijndwars

Hi,

I noticed some strange behavior when creating a directive with replace: true, an external template (e.g. templateUrl: '...') and ng-switch. An error is thrown:

"Controller 'ngSwitch', required by directive 'ngSwitchDefault', can't be found!"

I've put a small plunker together to illustrate the error. Setting the replace option to false or using an inline template makes the error disappear, so I assume this is a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions