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

Please add some additional documentation around the bind function #342

Open
aplocher opened this issue Jan 11, 2017 · 1 comment
Open

Please add some additional documentation around the bind function #342

aplocher opened this issue Jan 11, 2017 · 1 comment

Comments

@aplocher
Copy link

There seems to be virtually no documentation about how bind works. It would be great if you incorporated some use cases into the demo.

Also, some additional clarification, such as:

  • Will setting the bound value to null or using clearAll cause the binding to get lost?
  • Where should the binding be defined (app.js > run for root scope, otherwise controller?)
  • Can you accidentally (or intentionally) register multiple bindings on a single property?
  • Is the $timeout function call in your example necessary? If so, why?

Thanks

@mortenn
Copy link

mortenn commented Sep 23, 2017

It also seems my assumption about being able to bind an object is wrong, as doing so seems to make the object inoperable in the angular app, and the bound property in localStorage gets set to null and not updated.

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