Overview of AngularFire features
mainAngularFire is the official library for Angular and Firebase. It provides a developer experience that conforms to Angular conventions by offering:
- Dependency Injection: Firebase services can be provided and injected directly into Angular components.
- Zone.js wrappers: Ensures stable zones for proper functionality of service workers, forms, SSR, and pre-rendering.
- Observable-based API: Uses RxJS instead of callbacks for handling real-time data streams.
- NgRx friendly API: Includes action-based APIs designed for integration with NgRx.
- Lazy-loading: Dynamically imports Firebase modules to reduce initial application load time.
- Deploy schematics: Allows deploying Angular applications to Firebase Hosting via CLI commands.
- Google Analytics: Provides built-in Angular Router awareness for Google Analytics.
- Router Guards: Includes built-in Firebase Authentication checks to guard Angular routes.