-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.html
More file actions
50 lines (44 loc) · 1.35 KB
/
app.component.html
File metadata and controls
50 lines (44 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="container">
<div class="columns is-centered">
<div class="box column is-one-third">
<h1 class="title has-text-centered">Password Generator</h1>
<div class="field">
<label>Length</label>
<input class="input" (input)="onChangeLength($event)" />
</div>
<div class="field">
<div class="control">
<label class="checkbox">
<input (change)="onChangeUseLetters()" type="checkbox" />
Use Letters
</label>
</div>
</div>
<div class="field">
<div class="control">
<label class="checkbox">
<input (change)="onChangeUseNumbers()" type="checkbox" />
Use Numbers
</label>
</div>
</div>
<div class="field">
<div class="control">
<label class="checkbox">
<input (change)="onChangeUseSymbols()" type="checkbox" />
Use Symbols
</label>
</div>
</div>
<button [disabled]="
!(length && (includeLetters || includeSymbols || includeNumbers))
" (click)="onButtonClick()" class="button is-link is-fullwidth">
Generate!
</button>
<div class="box" *ngIf="password">
<label>Your Password</label>
<input class="input" [value]="password" />
</div>
</div>
</div>
</div>