Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch/ngChange triggered on initialization #79

Open
shyamal890 opened this issue Jul 19, 2017 · 3 comments
Open

Watch/ngChange triggered on initialization #79

shyamal890 opened this issue Jul 19, 2017 · 3 comments

Comments

@shyamal890
Copy link

shyamal890 commented Jul 19, 2017

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 || "");

@shyamal890
Copy link
Author

@thijsw would appreciate your input. Uncessary HTTP call is made to the server due to this.

@thijsw
Copy link
Owner

thijsw commented Sep 29, 2017

I see, what do you propose we could change?

@shyamal890
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants