Skip to content

Commit 3429a50

Browse files
updating application to run on latest
1 parent 7a334b1 commit 3429a50

File tree

8 files changed

+47
-46
lines changed

8 files changed

+47
-46
lines changed

package.json

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
{
2-
"name": "ionic-hello-world",
2+
"name": "ionicRel2-angularfire2",
33
"author": "Ionic Framework",
44
"homepage": "http://ionicframework.com/",
55
"private": true,
66
"scripts": {
7-
"build": "ionic-app-scripts build --dev",
8-
"watch": "ionic-app-scripts watch",
9-
"serve:before": "watch",
10-
"emulate:before": "build",
11-
"deploy:before": "build",
12-
"build:before": "build",
13-
"run:before": "build"
7+
"clean": "ionic-app-scripts clean",
8+
"build": "ionic-app-scripts build",
9+
"ionic:build": "ionic-app-scripts build",
10+
"ionic:serve": "ionic-app-scripts serve"
1411
},
1512
"dependencies": {
16-
"@ionic/storage": "^1.0.3",
17-
"angularfire2": "2.0.0-beta.5",
18-
"firebase": "3.4.1",
19-
"ionic-angular": "^2.0.0-rc.0",
20-
"ionic-native": "^2.0.3",
21-
"ionicons": "^3.0.0"
13+
"@angular/common": "2.2.1",
14+
"@angular/compiler": "2.2.1",
15+
"@angular/compiler-cli": "2.2.1",
16+
"@angular/core": "2.2.1",
17+
"@angular/forms": "2.2.1",
18+
"@angular/http": "2.2.1",
19+
"@angular/platform-browser": "2.2.1",
20+
"@angular/platform-browser-dynamic": "2.2.1",
21+
"@angular/platform-server": "2.2.1",
22+
"@ionic/storage": "1.1.7",
23+
"angularfire2": "^2.0.0-beta.7",
24+
"firebase": "^3.6.6",
25+
"ionic-angular": "2.0.0-rc.5",
26+
"ionic-native": "2.2.11",
27+
"ionicons": "3.0.0",
28+
"rxjs": "5.0.0-beta.12",
29+
"sw-toolbox": "3.4.0",
30+
"zone.js": "0.6.26"
2231
},
2332
"devDependencies": {
24-
"@ionic/app-scripts": "^0.0.23",
25-
"typescript": "^2.0.3"
33+
"@ionic/app-scripts": "1.0.0",
34+
"typescript": "2.0.9"
2635
},
2736
"cordovaPlugins": [
2837
"cordova-plugin-device",

src/app/app.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Component } from '@angular/core';
22
import { Platform } from 'ionic-angular';
3-
import { StatusBar } from 'ionic-native';
3+
import { StatusBar, Splashscreen } from 'ionic-native';
44

55
import { HomePage } from '../pages/home/home';
66

77

88
@Component({
9-
template: `<ion-nav [root]="rootPage"></ion-nav>`
9+
templateUrl: 'app.html'
1010
})
1111
export class MyApp {
1212
rootPage = HomePage;
@@ -16,6 +16,7 @@ export class MyApp {
1616
// Okay, so the platform is ready and our plugins are available.
1717
// Here you can do any higher level native things you might need.
1818
StatusBar.styleDefault();
19+
Splashscreen.hide();
1920
});
2021
}
21-
}
22+
}

src/app/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ion-nav [root]="rootPage"></ion-nav>

src/app/app.module.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { BrowserModule } from '@angular/platform-browser';
2-
3-
import { NgModule } from '@angular/core';
4-
import { IonicApp, IonicModule } from 'ionic-angular';
1+
import { NgModule, ErrorHandler } from '@angular/core';
2+
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
53
import { MyApp } from './app.component';
64
import { HomePage } from '../pages/home/home';
75

@@ -11,15 +9,16 @@ import { AngularFireModule } from 'angularfire2';
119

1210
// Must export the config
1311
export const firebaseConfig = {
14-
apiKey: '<your-key>',
15-
authDomain: '<your-project-authdomain>',
16-
databaseURL: '<your-database-URL>',
17-
storageBucket: '<your-storage-bucket>'
12+
// apiKey: '<your-key>',
13+
// authDomain: '<your-project-authdomain>',
14+
// databaseURL: '<your-database-URL>',
15+
// storageBucket: '<your-storage-bucket>'
16+
17+
1818
};
1919

2020
@NgModule({
2121
imports: [
22-
BrowserModule,
2322
FormsModule,
2423
ReactiveFormsModule,
2524
AngularFireModule.initializeApp(firebaseConfig),
@@ -34,6 +33,6 @@ export const firebaseConfig = {
3433
MyApp,
3534
HomePage
3635
],
37-
providers: []
36+
providers: [{provide: ErrorHandler, useClass: IonicErrorHandler}]
3837
})
3938
export class AppModule { }

src/app/main.prod.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.

src/pages/home/home.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22

3-
import { AngularFire, AuthProviders, AuthMethods, FirebaseAuthState, FirebaseAuth } from 'angularfire2';
3+
import { AngularFire, AuthProviders, AuthMethods, FirebaseAuthState, AngularFireAuth } from 'angularfire2';
44

55
import { NavController } from 'ionic-angular';
66
import { Validators, FormBuilder, FormControl, FormGroup } from '@angular/forms';
@@ -12,7 +12,7 @@ import { Validators, FormBuilder, FormControl, FormGroup } from '@angular/forms'
1212
//directives: [REACTIVE_FORM_DIRECTIVES]
1313
})
1414

15-
export class HomePage {
15+
export class HomePage implements OnInit {
1616

1717
currentUser;
1818
error;
@@ -26,7 +26,7 @@ export class HomePage {
2626
public af: AngularFire,
2727
private builder: FormBuilder,
2828
public navCtrl: NavController,
29-
public auth$: FirebaseAuth) {
29+
public auth$: AngularFireAuth) {
3030

3131
}
3232

tsconfig.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
22
"compilerOptions": {
3-
"typeRoots": [
4-
"../node_modules/@types/**"
5-
],
6-
"types": [
7-
"firebase"
8-
],
93
"allowSyntheticDefaultImports": true,
10-
"declaration": true,
4+
"declaration": false,
115
"emitDecoratorMetadata": true,
126
"experimentalDecorators": true,
137
"lib": [
@@ -16,8 +10,12 @@
1610
],
1711
"module": "es2015",
1812
"moduleResolution": "node",
13+
"sourceMap": true,
1914
"target": "es5"
2015
},
16+
"include": [
17+
"src/**/*.ts"
18+
],
2119
"exclude": [
2220
"node_modules"
2321
],

0 commit comments

Comments
 (0)