dazziola / ionic2firebase3

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 50.7%Language:JavaScript 19.2%Language:CSS 18.2%Language:HTML 11.9%