Closed zhouzi closed 8 years ago
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:
Controller 'ngModel', required by directive 'uiTinymce', can't be found!
<textarea ng-if="ctrl.show" ng-model="ctrl.input" ui-tinymce></textarea>
Here is a fiddle.
There are two possible solutions:
Let me know what you think and I'll eventually submit a PR :)
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:Here is a fiddle.
There are two possible solutions:
Let me know what you think and I'll eventually submit a PR :)