FirebaseExtended / angularfire

AngularJS bindings for Firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FirebaseObject $bindTo and Angular For

d1b1 opened this issue · comments

Angular: 2.3.0

Firebase: 3.4.1

AngularFire: 1.4.7

I have a general question about the expected usage for firebaseObject.$bindTo. When I bind an object to a scope, and let the values change in the view view a input I get an error when the value is empty. If I edit the input and change the values from 'Foo' to ''. I get an undefined error.

Is it recommended usage to bind an object for use in a form? Is there a way to trap this error?

Thanks,

This is a usage question, which is better suited for Stack Overflow or the Firebase Google Group. Can you please re-post on one of those forums and paste the link here? Please also remember to include version information and a code sample (if relevant) to help us resolve your issue.