googlearchive / angularfire-seed

Seed project for AngularFire apps
http://angularfire.com
MIT License
409 stars 191 forks source link

revisiting account page, removes "simplelogin:xxxx" user from firebase #38

Closed aduijs closed 10 years ago

aduijs commented 10 years ago

Hi, I got this really weird issue and no idea where to look. I have copied all the controller and services into a yo angular project, and the registering/loging is working fine. It nicely created the user and the profile, also redirects to the account page where i see the name + email. but after browsing to one or two other pages withing the angular project on returning to the account page.. the data in users/simplelogin:xxxx gets removed from the firebase. It see it disappear from the dashboard, turning red.. and gone it is.

any idea why (and where) this is happening?

thankx arjan

katowulf commented 10 years ago

Arjan,

Thanks for reaching out with your issue. You'll need to include version info and a repro if we're going to be any help with an obscure bug like this.

Cheers,

aduijs commented 10 years ago

Hi Kato, i have uploaded the files to https://github.com/aduijs/fireseed

katowulf commented 10 years ago

It looks like you've upgraded your seed to 0.7.1 (the seed ships with 0.6.0 at present; we'll be updating that to the latest in a few days).

Try removing this line in AcctCtrl.js:

 $scope.user = {};

That essentially sets the user object to null in Firebase. There were some idiosyncratic behaviors in the 0.6 branch, and also in 0.7, related to bindTo. I'm sure this is related to those.

Regards,

aduijs commented 10 years ago

cheers will try

aduijs commented 10 years ago

looking good! should have asked days ago :) cheers for the support!

arjan

katowulf commented 10 years ago

Always a pleasure. Watch the mailing list and blog for news about the upcoming 0.8 release. We'll have a seed out for that soon as well. Also, we have a generator for angularfire / yoeman. It's also a bit out of date but will be getting a facelift as well.

Cheers,