<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5" -->

---
title: What's new in AngularFire 1.2 | daily.dev
description: AngularFire 1.2 adds dependency injection of Firebase references through the new $firebaseRefProvider, letting developers register Firebase URLs during the...
canonical: https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What's new in AngularFire 1.2 | daily.dev
og:description: AngularFire 1.2 adds dependency injection of Firebase references through the new $firebaseRefProvider, letting developers register Firebase URLs during the...
og:url: https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5
og:image: https://api.daily.dev/og/posts/0VOUxv3w5.png
og:image:alt: What's new in AngularFire 1.2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What's new in AngularFire 1.2

**[Firebase](https://daily.dev/sources/firebase-blog)** · 2 min read · 0 upvotes · 0 comments

## Summary

AngularFire 1.2 adds dependency injection of Firebase references through the new $firebaseRefProvider, letting developers register Firebase URLs during the config phase instead of instantiating Firebase objects with 'new', which improves testability. It also introduces $firebaseAuthService, a simplified authentication service that can automatically construct a $firebaseAuth service for use in route resolvers, removing the need to manually create one. The team notes they are simultaneously working on AngularFire 2 while continuing to support version 1.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://firebase.blog/posts/2016/03/whats-new-in-angularfire-12_90>

## Questions this post answers

### How do I inject a Firebase reference into an AngularJS controller instead of using new Firebase()?

AngularFire 1.2 adds the $firebaseRefProvider, which lets you register a Firebase URL during your app's config phase using $firebaseRefProvider.registerUrl(). Once registered, you inject $firebaseRef into controllers, services, or factories instead of calling new Firebase(url) directly, which decouples object construction from application logic and makes unit testing easier.

_daily.dev surfaces framework release notes like this for developers modernizing legacy AngularJS and Firebase code._

### How can I register multiple Firebase URLs in AngularFire?

Pass a configuration object to $firebaseRefProvider.registerUrl() with named keys mapping to different URLs, such as a default root URL plus a messages URL pointing to a child path. A default property is required by convention since it points to the root URL and other keys can reference additional paths off that base.

_Developers wiring up multi-path Firebase apps track library changes like this through daily.dev._

### How do I set up authentication in an AngularFire route resolver without creating a custom $firebaseAuth service?

AngularFire 1.2 introduces $firebaseAuthService, which automatically constructs a $firebaseAuth service once a URL is registered with $firebaseRefProvider. In a route's resolve block, you can call $firebaseAuthService.$waitForAuth() directly, removing the need to manually build your own $firebaseAuth instance for route-level authentication checks.

_daily.dev helps developers stay current on library-specific auth patterns like this one._

## Similar posts on daily.dev

- [Ultimate Angular Firebase Setup with AnalogJS](https://daily.dev/posts/ultimate-angular-firebase-setup-with-analogjs-axsdtce68) · Telerik · 0 upvotes · 0 comments
- [Angular 22: The Evolution of Modern Angular](https://daily.dev/posts/angular-22-the-evolution-of-modern-angular-tpdetu6wa) · Telerik · 0 upvotes · 0 comments

---

Tags: [#authentication](https://daily.dev/tags/authentication), [#angular](https://daily.dev/tags/angular), [#firebase](https://daily.dev/tags/firebase), [#dependency-injection](https://daily.dev/tags/dependency-injection)

[View this post on daily.dev](https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What's new in AngularFire 1.2","url":"https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5"},"datePublished":"2026-08-23T12:20:31.231Z","dateModified":"2026-08-23T12:31:20.898Z","description":"AngularFire 1.2 adds dependency injection of Firebase references through the new $firebaseRefProvider, letting developers register Firebase URLs during the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed721de96163685d26ab7e314be3ebc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed721de96163685d26ab7e314be3ebc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Firebase","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase","logo":"https://media.daily.dev/image/upload/s--i395oqZH--/f_auto,q_auto/v1787487448/logos/firebase-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/firebase-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"authentication,angular,firebase,dependency-injection","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase","item":"https://daily.dev/sources/firebase-blog"},{"@type":"ListItem","position":3,"name":"What's new in AngularFire 1.2"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/what-s-new-in-angularfire-1-2-0vouxv3w5#faq","mainEntity":[{"@type":"Question","name":"How do I inject a Firebase reference into an AngularJS controller instead of using new Firebase()?","acceptedAnswer":{"@type":"Answer","text":"AngularFire 1.2 adds the $firebaseRefProvider, which lets you register a Firebase URL during your app's config phase using $firebaseRefProvider.registerUrl(). Once registered, you inject $firebaseRef into controllers, services, or factories instead of calling new Firebase(url) directly, which decouples object construction from application logic and makes unit testing easier. daily.dev surfaces framework release notes like this for developers modernizing legacy AngularJS and Firebase code."}},{"@type":"Question","name":"How can I register multiple Firebase URLs in AngularFire?","acceptedAnswer":{"@type":"Answer","text":"Pass a configuration object to $firebaseRefProvider.registerUrl() with named keys mapping to different URLs, such as a default root URL plus a messages URL pointing to a child path. A default property is required by convention since it points to the root URL and other keys can reference additional paths off that base. Developers wiring up multi-path Firebase apps track library changes like this through daily.dev."}},{"@type":"Question","name":"How do I set up authentication in an AngularFire route resolver without creating a custom $firebaseAuth service?","acceptedAnswer":{"@type":"Answer","text":"AngularFire 1.2 introduces $firebaseAuthService, which automatically constructs a $firebaseAuth service once a URL is registered with $firebaseRefProvider. In a route's resolve block, you can call $firebaseAuthService.$waitForAuth() directly, removing the need to manually build your own $firebaseAuth instance for route-level authentication checks. daily.dev helps developers stay current on library-specific auth patterns like this one."}}]}
```

