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

Description
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:
- Decrease the priority to, e.g, 500: fiddle
- Apply ng-if to a parent element: fiddle
Let me know what you think and I'll eventually submit a PR :)