Skip to content

ionic2 simple login with firebase3.0 showing camera integration for image upload

Notifications You must be signed in to change notification settings

erwinpagulong/ionic2firebase3

 
 

Repository files navigation

ionic2firebase3

ionic2 simple login with firebase3.0

####Getting Firebase working without the typings

added this code in the index.html file right below the <ion-app> tag

  <ion-app></ion-app>
  <script src="https://www.gstatic.com/firebasejs/3.0.2/firebase.js"></script>

Then in the firebaseService.ts

declare var firebase: any;

to keep the ts compiler from complaining

####Firebase Initialization

You do not need to add this to index.html, copy the information provided to you from the Firebase Getting Started w/Web to the constructor of the library

@Injectable()
export class FirebaseService {

    constructor() {
        // Initialize Firebase
        var config = {
            apiKey: "your-key",
            authDomain: "clearlyinnovative-firebasestarterapp.firebaseapp.com",
            databaseURL: "https://clearlyinnovative-firebasestarterapp.firebaseio.com",
            storageBucket: "clearlyinnovative-firebasestar.appspot.com",
        };
        firebase.initializeApp(config);

##Other Ionic2 Project Repos Integrating ionic2 Google Maps Native Plugin

About

ionic2 simple login with firebase3.0 showing camera integration for image upload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.7%
  • JavaScript 19.2%
  • CSS 18.2%
  • HTML 11.9%