added dynamic login page
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Component, signal} from '@angular/core';
|
||||
import {IonicModule} from "@ionic/angular";
|
||||
import {LoginFormComponent} from "../../components/login-form/login-form.component";
|
||||
import {SignOnFormComponent} from "../../components/sign-on-form/sign-on-form.component";
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
@@ -8,13 +9,19 @@ import {LoginFormComponent} from "../../components/login-form/login-form.compone
|
||||
styleUrls: ['./login.component.scss'],
|
||||
imports: [
|
||||
IonicModule,
|
||||
LoginFormComponent
|
||||
LoginFormComponent,
|
||||
SignOnFormComponent
|
||||
]
|
||||
})
|
||||
export class LoginComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {}
|
||||
export class LoginComponent {
|
||||
authState = signal<boolean>(true)
|
||||
|
||||
createAccount(): void {
|
||||
if (this.authState()) {
|
||||
this.authState.set(false);
|
||||
}else
|
||||
if (this.authState() == false) {
|
||||
this.authState.set(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user