5 ms·
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 settin
by drhayes9 13y ago
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 using $scope.apply with AngularFire since you're often already in the apply cycle in its callbacks (would be nice if that were explicit).
- joshstrange 13y agoThis is nitpicky for sure but angularFire doesn't play nice with AngularJS 1.2's breaking out some modules (Route, Sanitize, Cookies, and 1-2 more) into separate JS files. I had to comment out all the $route stuff in angularFire so that I could get them to work together. Thankfully I am not using fireBase with my $route's so I am unaffected. 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.