angular-medium-editor
angular-medium-editor copied to clipboard
Watch/ngChange triggered on initialization
Currently if the model is set to null || undefined ng-change and watch are triggered on initialization.
Most probably has to do with the following line of code:
ngModel.editor.setContent(ngModel.$viewValue || "");
@thijsw would appreciate your input. Uncessary HTTP call is made to the server due to this.
I see, what do you propose we could change?
I tried changing ngModel.editor.setContent(ngModel.$viewValue || ""); to ngModel.editor.setContent(ngModel.$viewValue); but it didn't have desired effect. Don't know what is causing this.