# polymerfire **Repository Path**: fawu/polymerfire ## Basic Information - **Project Name**: polymerfire - **Description**: polymerfire from https://github.com/FirebaseExtended/polymerfire - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-08 - **Last Updated**: 2023-02-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build status](https://travis-ci.org/firebase/polymerfire.svg?branch=master)](https://travis-ci.org/firebase/polymerfire) ## Status ![Status: Archived](https://img.shields.io/badge/Status-Archived-red) This library is no longer actively maintained. We **do not recommend** using this library in production. If you maintain a fork of this library that you believe is healthier than the official version, we may consider recommending your fork. Please open a Pull Request if you believe that is the case. ## <firebase-app> The firebase-app element is used for initializing and configuring your connection to firebase. ## <firebase-auth> `firebase-auth` is a wrapper around the Firebase authentication API. It notifies successful authentication, provides user information, and handles different types of authentication including anonymous, email / password, and several OAuth workflows. Example Usage: ```html ``` The `firebase-app` element initializes `app` in `firebase-auth` (see `firebase-app` documentation for more information), but an app name can simply be specified at `firebase-auth`'s `app-name` property instead. JavaScript sign-in calls can then be made to the `firebase-auth` object to attempt authentication, e.g.: ```javascript this.$.auth.signInWithPopup() .then(function(response) {// successful authentication response here}) .catch(function(error) {// unsuccessful authentication response here}); ``` This popup sign-in will then attempt to sign in using Google as an OAuth provider since there was no provider argument specified and since `"google"` was defined as the default provider. ## <firebase-document> The firebase-document element is an easy way to interact with a firebase location as an object and expose it to the Polymer databinding system. For example: ```html ``` This fetches the `noteData` object from the firebase location at `/users/${userId}/notes/${noteId}` and exposes it to the Polymer databinding system. Changes to `noteData` will likewise be, sent back up and stored. `` needs some information about how to talk to Firebase. Set this configuration by adding a `` element anywhere in your app. ## <firebase-query> `firebase-query` combines the given properties into query options that generate a query, a request for a filtered, ordered, immutable set of Firebase data. The results of this Firebase query are then synchronized into the `data` parameter. Example usage: ```html ```