nx-primeng-sakai-v17/src/app/components/login/login.component.ts

42 lines
876 B
TypeScript
Raw Normal View History

2022-01-14 12:54:36 +00:00
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styles:[`
:host ::ng-deep .p-password input {
width: 100%;
padding:1.25rem;
font-size:21px;
}
:host ::ng-deep .pi-eye{
transform:scale(1.6);
margin-right: 1rem;
}
:host ::ng-deep .pi-eye-slash{
transform:scale(1.6);
margin-right: 1rem;
}
`]
})
export class LoginComponent implements OnInit {
valCheck: string[] = ['remember'];
password: string;
themeElement: any;
constructor() { }
ngOnInit(): void {
this.themeElement = document.getElementById('theme-css');
this.themeElement.setAttribute('href','assets/theme/saga-blue/theme.css');
}
ngOnDestroy(): void {
this.themeElement.setAttribute('href', 'assets/theme/lara-light-indigo/theme.css');
}
}