refractor: login module (#283)

* Refractor components.
* Shift language and footer component to shared module.
* Replace mat-icons by font-awesome icons.
* Add comments.

Fixes #284
This commit is contained in:
Abhay Chawla
2018-08-09 22:28:17 +05:30
committed by GitHub
parent 9eead37c8c
commit 2330f70f2c
33 changed files with 629 additions and 313 deletions
+7 -2
View File
@@ -1,17 +1,22 @@
import { Injectable, EventEmitter } from '@angular/core';
export interface Alert {
type: string;
message: string;
}
@Injectable({
providedIn: 'root'
})
export class AlertService {
public alertEvent: EventEmitter<any>;
public alertEvent: EventEmitter<Alert>;
constructor() {
this.alertEvent = new EventEmitter();
}
alert(alertEvent: any) {
alert(alertEvent: Alert) {
this.alertEvent.emit(alertEvent);
}
+1
View File
@@ -11,3 +11,4 @@ export * from './http/error-handler.interceptor';
export * from './route.service';
export * from './route-reusable-strategy';
export * from './logger.service';
export * from './alert.service';