'What is the difference between @angular/fire and firebase for an Angular project?
What is the difference between @angular/fire and firebase for an Angular project using firebase? They are both NPM packages.
Solution 1:[1]
The firebase npm module packages the Firebase SDKs for use in any client-side JavaScript application. So the SDKs in there are not specific to Angular, or any other framework.
The @angular/fire npm module wraps the standard SDK, and provides dedicated bindings to Angular primitives. So it contains observables, it knows of zones, and more stuff you'd expect to make it easier to use in your Angular apps.
So when you use the @angular/fire you are also implicitly using the regular firebase SDKs, you just also get higher level primitives that make it easier to integrate into Angular.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Frank van Puffelen |
