From 159bb8ef459b0361d0ac5c6ac64a5a82dd81c063 Mon Sep 17 00:00:00 2001 From: Jad Salhani Date: Sat, 27 Jan 2018 21:57:59 +0200 Subject: [PATCH] Created alert provider --- src/app/app.module.ts | 4 +++- src/providers/alert/alert.ts | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/providers/alert/alert.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 8de077f..476043e 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -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: [ @@ -39,7 +40,8 @@ import { BarcodeScanner } from "@ionic-native/barcode-scanner"; User, StatusBar, SplashScreen, - BarcodeScanner + BarcodeScanner, + AlertProvider ] }) export class AppModule { } diff --git a/src/providers/alert/alert.ts b/src/providers/alert/alert.ts new file mode 100644 index 0000000..fae21c1 --- /dev/null +++ b/src/providers/alert/alert.ts @@ -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'); + } + +}