app.component.ts 1.03 KB
import { Component, OnInit } from '@angular/core';
import { UserService } from './components/UserEntity/user.service';
import { ManageDiscountCodeService } from './components/ManageDiscountCode/managediscountcode.service';
import { SubscriptionPriceService } from './components/SubscriptionPrice/subscriptionprice.service';
import { LicenseService } from './components/LicenseEntity/license.service';
import { ReportService } from './components/Reports/report.service';
//import { MyAuthService } from './shared/my-auth.service';
import { GlobalService } from './Shared/global';
@Component({
  selector: 'app-component',
  templateUrl: '../app/app.component.html',
  providers: [UserService, ManageDiscountCodeService, SubscriptionPriceService, LicenseService, ReportService]
})

export class AppComponent implements OnInit {

  constructor(private userservice: UserService, private global: GlobalService) { }
  
  ngOnInit(): void { }
  logout() {
    localStorage.removeItem('loggedInUserDetails');
    window.location.href = this.global.LiveURL; 
  }
}