question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing $firebase.storage() in Angularfire 1.X

See original GitHub issue

Hi all,

I’m working on a pretty old project right now. It’s built in Angular 1.4 and uses these firebase libraries:

"firebase": "^2.4.1",
"angularfire": "~1.1.4",

It makes heavy use of the “Firebase” api, and I’d rather not refactor the entire project if I don’t have to. hehe.

The problem is that now we want to introduce Firebase storage, and I can’t figure out what api you are expected to use in firebase 1.X.

I tried injecting $firebase into my controller/service, but it seems that there are no storage methods on that. Also, for some reason there was never a $firebaseStorage service (someone please correct me, but I think this is because the actual storage product that firebase offers began after the 1.x library was created).

Anyway, can someone point me towards the easiest way to implement storage on this older project (I’m sure I’m not the only one wondering about this)? Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
JimLynchCodescommented, Oct 4, 2016

I just tried, am I’m happy to say that I was able to access regular old firebase without adding any imports.

0reactions
JimLynchCodescommented, Oct 4, 2016

ok thanks guys. I will try this out.

btw - I’m using bower to load in firebase and angularfire (repo here: https://github.com/ng-nj/ng-nj.org)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing $firebase.storage() in Angularfire 1.X #856 - GitHub
Hey, in my project I use storage as well and it's not too hard. in my firebase factory i create a config with...
Read more >
Change url of storage image on submit infirebase with angular ...
I've finally manage to have my upload to storage functionality working perfectly into my firebase storage running with Angular and Angularfire.
Read more >
Add Firebase to your JavaScript project - Google
Step 1: Create a Firebase project and register your app · Step 2: Install the SDK and initialize Firebase · Step 3: Access...
Read more >
angular/fire - npm
The official Angular library for Firebase. ng add @angular/fire. AngularFire smooths over the rough edges an Angular developer might encounter ...
Read more >
@angular/fire | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found