my-auth.service.ts 1.09 KB
//import { Injectable } from '@angular/core';
//import { AngularFireAuth } from 'angularfire2/auth';
//import { Router } from '@angular/router';
//import { GlobalService } from './global';
//@Injectable()
//export class MyAuthService {

//  constructor(public afAuth: AngularFireAuth, public router: Router, public global: GlobalService) { }
//  logout() {
//    this.afAuth.auth.signOut()
//    {
//      localStorage.removeItem('Customer');
//      window.location.href = this.global.LiveURL;      
//    }

//  }
//}

////import { Injectable } from '@angular/core';
////import { Router } from '@angular/router';
////import { GlobalService } from './global';
////import { AngularFireAuth } from 'angularfire2/auth';
////@Injectable()

////export class AuthService {
////  constructor(public router: Router, public global: GlobalService, public afAuth: AngularFireAuth) { }

////  authSignOut() {
////    this.afAuth.auth.signOut()
////    {
////      localStorage.removeItem('Customer');
////      //this.router.navigate(['Login']);
////      window.location.href = this.global.LiveURL;
////    }
////  }
////}