mirror of
https://github.com/fergalmoran/icebreaker-mobile.git
synced 2025-12-22 09:39:31 +00:00
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
//import 'es6-shim';
|
|
import {Component} from '@angular/core';
|
|
import {ionicBootstrap, Platform} from 'ionic-angular';
|
|
import {StatusBar} from 'ionic-native';
|
|
import {HomePage} from './pages/home/home';
|
|
import {TabsPage} from './pages/tabs/tabs';
|
|
|
|
|
|
import {
|
|
FIREBASE_PROVIDERS, defaultFirebase,
|
|
AngularFire, firebaseAuthConfig, AuthProviders,
|
|
AuthMethods
|
|
} from 'angularfire2';
|
|
|
|
@Component({
|
|
template: '<ion-nav [root]="rootPage"></ion-nav>',
|
|
providers: [
|
|
FIREBASE_PROVIDERS,
|
|
// Initialize Firebase app
|
|
defaultFirebase({
|
|
apiKey: "AIzaSyBltKr00N9-KPzkGYut2tkZSk_TIiydZm8",
|
|
authDomain: "icebreaker-f5f20.firebaseapp.com",
|
|
databaseURL: "https://icebreaker-f5f20.firebaseio.com",
|
|
storageBucket: "icebreaker-f5f20.appspot.com",
|
|
}),
|
|
firebaseAuthConfig({
|
|
provider: AuthProviders.Password,
|
|
method: AuthMethods.Password,
|
|
remember: 'default',
|
|
scope: ['email']
|
|
})
|
|
]
|
|
})
|
|
export class MyApp {
|
|
private rootPage: any;
|
|
|
|
constructor(platform: Platform) {
|
|
this.rootPage = TabsPage;
|
|
platform.ready().then(() => {
|
|
// Okay, so the platform is ready and our plugins are available.
|
|
// Here you can do any higher level native things you might need.
|
|
StatusBar.styleDefault();
|
|
});
|
|
}
|
|
}
|
|
|
|
ionicBootstrap(MyApp);
|