From 33f535d30ae0e3c6f68ce0426ce752febe4d4028 Mon Sep 17 00:00:00 2001 From: kiswa Date: Sun, 31 Jul 2016 19:54:30 +0000 Subject: [PATCH] Modal finalized --- src/app/main.ts | 5 ++- src/app/shared/index.ts | 2 +- src/app/shared/modal/index.ts | 3 ++ src/app/shared/modal/modal.component.html | 2 +- src/app/shared/modal/modal.component.ts | 31 +++++++------ src/app/shared/modal/modal.service.ts | 53 +++++++++++++++++++++++ 6 files changed, 76 insertions(+), 20 deletions(-) create mode 100644 src/app/shared/modal/index.ts create mode 100644 src/app/shared/modal/modal.service.ts diff --git a/src/app/main.ts b/src/app/main.ts index d7d9fcd..b73938a 100644 --- a/src/app/main.ts +++ b/src/app/main.ts @@ -6,7 +6,7 @@ import { enableProdMode } from '@angular/core'; import { AppComponent } from './app.component'; import { APP_ROUTER_PROVIDERS } from './app.routes'; import { API_HTTP_PROVIDERS } from './app.api-http'; -import { NotificationsService } from './shared/index'; +import { NotificationsService, ModalService } from './shared/index'; import { Constants } from './shared/constants'; // enableProdMode(); @@ -18,6 +18,7 @@ bootstrap(AppComponent, [ APP_ROUTER_PROVIDERS, API_HTTP_PROVIDERS, Constants, - NotificationsService + NotificationsService, + ModalService ]); diff --git a/src/app/shared/index.ts b/src/app/shared/index.ts index a8c5a17..8cfa390 100644 --- a/src/app/shared/index.ts +++ b/src/app/shared/index.ts @@ -3,5 +3,5 @@ export * from './auth/index'; export * from './models/index'; export * from './notifications/index'; export * from './constants'; -export * from './modal/modal.component' +export * from './modal/index' diff --git a/src/app/shared/modal/index.ts b/src/app/shared/modal/index.ts new file mode 100644 index 0000000..cd83018 --- /dev/null +++ b/src/app/shared/modal/index.ts @@ -0,0 +1,3 @@ +export * from './modal.component'; +export * from './modal.service'; + diff --git a/src/app/shared/modal/modal.component.html b/src/app/shared/modal/modal.component.html index 6c66e52..f5e91b6 100644 --- a/src/app/shared/modal/modal.component.html +++ b/src/app/shared/modal/modal.component.html @@ -2,7 +2,7 @@