Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Using ng-if along with ui-tinymce causes the ngModel controller not to be found #241

@zhouzi

Description

@zhouzi

The priority of ui-tinymce being 999, it's higher than ng-if and gets compiled before the ngModel is available. It causes a Controller 'ngModel', required by directive 'uiTinymce', can't be found! to be thrown:

<textarea ng-if="ctrl.show" ng-model="ctrl.input" ui-tinymce></textarea>

Here is a fiddle.

There are two possible solutions:

  1. Decrease the priority to, e.g, 500: fiddle
  2. Apply ng-if to a parent element: fiddle

Let me know what you think and I'll eventually submit a PR :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions