Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Error when doing $compile within the <ui-select> Tag #1856

Closed
@pascDa

Description

@pascDa

Bug description:

We use a directive that requires ngModel at the same Element (our Directive needs to be at the Tag where the ng-model Attribute is set). Our Directive removes itself, adds other custom directives via setAttribute and compiles the Element again. The Elements HTML was already changed at that Point so a Exception is thrown during $compile.
While $compile the following Exception is thrown:
angular.js:13920 Error: [$compile:ctreq] Controller 'uiSelect', required by directive 'uiSelectSingle', can't be found!

Link to minimally-working plunker that reproduces the issue:

http://run.plnkr.co/plunks/Y0WtNZgaasUbdx3LvzSn/
http://plnkr.co/edit/Y0WtNZgaasUbdx3LvzSn?p=preview

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

Angular: 1.5.8
UI-Select: 0.19.3
Bootstrap/Select2/Selectize CSS: n/a

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