File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { ProfilePage } from '../pages/profile/profile';
1414import { TransitionPage } from '../pages/transition/transition' ;
1515import { AssessmentPage } from '../pages/assessment/assessment' ;
1616import { TimelinePage } from '../pages/timeline/timeline' ;
17+ import { UserProvider } from '../providers/user/user' ;
1718
1819@NgModule ( {
1920 declarations : [
@@ -48,7 +49,8 @@ import { TimelinePage } from '../pages/timeline/timeline';
4849 providers : [
4950 StatusBar ,
5051 SplashScreen ,
51- { provide : ErrorHandler , useClass : IonicErrorHandler }
52+ { provide : ErrorHandler , useClass : IonicErrorHandler } ,
53+ UserProvider
5254 ]
5355} )
5456export class AppModule { }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments