app.component.ts
1.28 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';
import { Router } from '@angular/router';
@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, private router: Router) { }
ngOnInit(): void { }
logout() {
localStorage.removeItem('loggedInUserDetails');
window.location.href = this.global.LiveURL;
}
Product() {
debugger;
//localStorage.removeItem('loggedInUserDetails');
window.location.href = this.global.LiveURL;
//this.router.navigate([this.global.LiveURL]);
}
}