Skip to content

Commit

Permalink
Created alert provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jadsalhani committed Jan 27, 2018
1 parent 95b6524 commit 159bb8e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { User } from '../providers/user';
import { StatusBar } from "@ionic-native/status-bar";
import { SplashScreen } from "@ionic-native/splash-screen";
import { BarcodeScanner } from "@ionic-native/barcode-scanner";
import { AlertProvider } from '../providers/alert/alert';

@NgModule({
declarations: [
Expand Down Expand Up @@ -39,7 +40,8 @@ import { BarcodeScanner } from "@ionic-native/barcode-scanner";
User,
StatusBar,
SplashScreen,
BarcodeScanner
BarcodeScanner,
AlertProvider
]
})
export class AppModule { }
17 changes: 17 additions & 0 deletions src/providers/alert/alert.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

/*
Generated class for the AlertProvider provider.
See https://angular.io/guide/dependency-injection for more info on providers
and Angular DI.
*/
@Injectable()
export class AlertProvider {

constructor(public http: HttpClient) {
console.log('Hello AlertProvider Provider');
}

}

0 comments on commit 159bb8e

Please sign in to comment.