The concept is RAD, in practice the Firebase learning curve sucks due to lack of good documentation of API semantics, especially w.r.t. AngularJS.
Angular + Firebase Is RAD
11–20 of 22 posts
Re: Angular + Firebase Is RAD
#12Still, a great project and concept, just has some more way to go before I'd use it in a real project. I do want to check out https://github.com/marknutter/firebase-resource though, made by a fellow HNer and mentioned last time around.
Re: Angular + Firebase Is RAD
#13The concept is RAD, in practice the Firebase learning curve sucks due to lack of good documentation of API semantics, especially w.r.t. AngularJS.
I was in the firebase beta, and it really was pretty simple to get a new app up and running, there was certainly good documentation. What are you referring to?
- be sure to set an empty object on your scope before setting up implicit binding on that object. If you don't, the error will be cryptic.
- add the property "authRequired: true" to your routes when setting up your $routeProvider to get AngularFire to block access to that route when not authenticated.
- be careful about using $scope.apply with AngularFire since you're often already in the apply cycle in its callbacks (would be nice if that were explicit).
Re: Angular + Firebase Is RAD
#14The concept is RAD, in practice the Firebase learning curve sucks due to lack of good documentation of API semantics, especially w.r.t. AngularJS.
I was in the firebase beta, and it really was pretty simple to get a new app up and running, there was certainly good documentation. What are you referring to?
Re: Angular + Firebase Is RAD
#15Earlier quoted context omitted.
I was in the firebase beta, and it really was pretty simple to get a new app up and running, there was certainly good documentation. What are you referring to?
To start, there are two different api methods for setting up data binding between angular and firebase. Where is a good semantic/conceptual explanation of the difference?
"Implicit" is a two-way, automatic binding: updates from the server will show up in your app and updates your app makes will be sent to the server automatically.
"Explicit" is a one-way, manual binding: updates from the server will show up in your app automatically but you have to sync back to the server manually using the add, remove, and update methods.
Is that what you mean?
Re: Angular + Firebase Is RAD
#16I am working on this as I learn AngularJS - https://github.com/manojlds/EventBase Working with Firebase has been fun, but security is hard. AngularFire is not really mature yet, too.
Re: Angular + Firebase Is RAD
#17Earlier quoted context omitted.
To start, there are two different api methods for setting up data binding between angular and firebase. Where is a good semantic/conceptual explanation of the difference?
Agreed, the labels they use are a little imprecise. "Implicit" is a two-way, automatic binding: updates from the server will show up in your app and updates your app makes will be sent to the server automatically. "Explicit" is a one-way, manual binding: updates from the server will show up in your app automatically but you have to sync back to the server manually using the add, remove, and update methods. Is that wh…
Re: Angular + Firebase Is RAD
#18Re: Angular + Firebase Is RAD
#19Earlier quoted context omitted.
Couldn't agree more, I have run into the same things it appears you have and come to similar conclusions. That was what was hardest for me when getting started, there are a billion examples of how to write a chat app, a todo list, etc but none of the examples I came across had, as you call it the "meat of how to build and Angular app with Firebase". I felt like most of what I was seeing was gimmicky and had no real u…
Yup. I'm also trying to learn AngularJS at the same time so the hits, they keep'a'coming. ( = It would be nice in the AngularFire documentation if they were clear what was a promise (implicit binding) and what wasn't (explicit binding). One of the things I ran into (which I hope they add to the documentation): before using implicit binding, create the object on the $scope in your controller first. Only after the empt…
Re: Angular + Firebase Is RAD
#20Earlier quoted context omitted.
I was in the firebase beta, and it really was pretty simple to get a new app up and running, there was certainly good documentation. What are you referring to?
I can't find answers to these questions in the docs, had to stumble around with the library first: - be sure to set an empty object on your scope before setting up implicit binding on that object. If you don't, the error will be cryptic. - add the property "authRequired: true" to your routes when setting up your $routeProvider to get AngularFire to block access to that route when not authenticated. - be careful about…
Also, I'm sure some of you might point out 1.2 is still in an RC state but I needed ngAnimate and didn't want to have to re-write a bunch of code a few weeks from now when it releases it's final version.