Ng-Book - the Complete Book on Angularjs by Ari Lerner

Ng-Book - the Complete Book on Angularjs by Ari Lerner

Author:Ari Lerner
Language: eng
Format: mobi
Tags: Javascript, Programming
ISBN: 9780991344604
Publisher: Fullstack IO
Published: 2013-12-28T23:00:00+00:00


The $firebaseAuth service method takes two arguments: a Firebase reference and an optional object with options. The object can contain the following properties to customize how the authentication works with Firebase:

path - This property is the path to which the user will be redirected if the authRequired property is set to true in the $routeProvider and the user is not logged in.

simple - $firebaseAuth requires inclusion of the firebase-simple-login.js file by default. If this simple value is set to false, this requirement is waived, but only custom login functionality will be enabled, and we cannot use simple auth.

callback - Firebase calls this function when there is a change in authentication state. We can use this callback as an alternative to events fired on $rootScope, which is the recommended way to handle changes in auth state.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.