style: format code for consistency and readability
This commit is contained in:
parent
69d26e89b7
commit
386813c524
44 changed files with 566 additions and 370 deletions
|
@ -2,9 +2,14 @@
|
|||
|
||||
<form [formGroup]="loginForm">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" id="username" autocomplete="username" formControlName="username">
|
||||
<input
|
||||
type="text"
|
||||
id="username"
|
||||
autocomplete="username"
|
||||
formControlName="username"
|
||||
/>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" formControlName="password">
|
||||
<input type="password" id="password" formControlName="password" />
|
||||
<button (click)="submit()" type="submit">Login</button>
|
||||
<button type="reset" (click)="reset()">Reset</button>
|
||||
</form>
|
||||
|
|
|
@ -8,9 +8,8 @@ describe('TestComponent', () => {
|
|||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [TestComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
imports: [TestComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(TestComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
|
|
@ -6,7 +6,7 @@ import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|||
standalone: true,
|
||||
imports: [ReactiveFormsModule],
|
||||
templateUrl: './test.component.html',
|
||||
styleUrl: './test.component.css'
|
||||
styleUrl: './test.component.css',
|
||||
})
|
||||
export class TestComponent {
|
||||
public loginForm!: FormGroup;
|
||||
|
@ -19,8 +19,8 @@ export class TestComponent {
|
|||
|
||||
setUpLoginForm(): FormGroup {
|
||||
return new FormGroup({
|
||||
username: new FormControl("Jan"),
|
||||
password: new FormControl('')
|
||||
username: new FormControl('Jan'),
|
||||
password: new FormControl(''),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue