Allison Ziegler 6 years ago
parent
commit
e8142f3a28
3 changed files with 25 additions and 5 deletions
  1. 3
    4
      zlg/ionic.config.json
  2. 3
    1
      zlg/src/app/app.module.ts
  3. 19
    0
      zlg/src/providers/user/user.ts

+ 3
- 4
zlg/ionic.config.json View File

@@ -1,8 +1,7 @@
1 1
 {
2 2
   "name": "zlg",
3
-  "app_id": "",
4
-  "type": "ionic-angular",
5 3
   "integrations": {
6 4
     "cordova": {}
7
-  }
8
-}
5
+  },
6
+  "type": "ionic-angular"
7
+}

+ 3
- 1
zlg/src/app/app.module.ts View File

@@ -15,6 +15,7 @@ import { Login } from '../pages/login/login'
15 15
 import { Signup } from '../pages/signup/signup'
16 16
 import { HomePage } from '../pages/home/home';
17 17
 import { WebsocketProvider } from '../providers/websocket/websocket';
18
+import { UserProvider } from '../providers/user/user';
18 19
 
19 20
 @NgModule({
20 21
   declarations: [
@@ -41,7 +42,8 @@ import { WebsocketProvider } from '../providers/websocket/websocket';
41 42
     StatusBar,
42 43
     SplashScreen,
43 44
     {provide: ErrorHandler, useClass: IonicErrorHandler},
44
-    WebsocketProvider
45
+    WebsocketProvider,
46
+    UserProvider
45 47
   ]
46 48
 })
47 49
 export class AppModule {}

+ 19
- 0
zlg/src/providers/user/user.ts View File

@@ -0,0 +1,19 @@
1
+import { HttpClient } from '@angular/common/http';
2
+import { Injectable } from '@angular/core';
3
+
4
+/*
5
+  Generated class for the UserProvider provider.
6
+
7
+  See https://angular.io/guide/dependency-injection for more info on providers
8
+  and Angular DI.
9
+*/
10
+@Injectable()
11
+export class UserProvider {
12
+
13
+  constructor(public http: HttpClient) {
14
+    console.log('Hello UserProvider Provider');
15
+  }
16
+
17
+  
18
+
19
+}