-
Notifications
You must be signed in to change notification settings - Fork 275
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
Model binding doesn't work in fa-surface. #336
Comments
Hello, You should use an object to store your ng-model value like this :
it avoids this kind of weird issue : http://codepen.io/Kelevra/pen/VYQaYa. |
Thank you so much for your help. I appreciate it. However I would like to know the fundamental solution about this issue.. Thank you. |
You are in two different scopes! When you declare fa-app you should list a controller, then your problem becomes a little more self evident. When you click on the button, angular will start at the current scope and look for The use of When you wrap your model in an So the solution proposed by @SuPenguin is really pretty dangerous because it completely ignores the fact that you are on two different scopes. |
After I have changed a model from a view within 'fa-surface',
if I rechanged the model by controller's function, it doesn't reflect to the view.
The version.
Example HTML
Example Javascript
Example steps
Please confirm about the behavior above.
Thanks.
The text was updated successfully, but these errors were encountered: