-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadress.component.html
More file actions
48 lines (48 loc) · 2.07 KB
/
adress.component.html
File metadata and controls
48 lines (48 loc) · 2.07 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
<div class="form-group">
<div class="row">
<div class="col">
<label for="">Line 1</label>
<input type="text" class="form-control" id="lineOne" required [(ngModel)]="adress.lineOne" name="lineOne" #lineOne="ngModel">
<div [hidden]="lineOne.valid || lineOne.pristine" class="alet alert-damger">
line1 is required!!
</div>
</div>
<div class="col">
<label for="">Line 2</label>
<input type="text" class="form-control" id="lineTwo" required [(ngModel)]="adress.lineTwo" name="lineTwo" #lineTwo="ngModel">
<div [hidden]="lineTwo.valid || lineTwo.pristine" class="alet alert-damger">
line2 is required!!
</div>
</div>
<div class="col">
<label for="">City</label>
<input type="text" class="form-control" id="city" required [(ngModel)]="adress.city" name="city" #city="ngModel">
<div [hidden]="city.valid || city.pristine" class="alet alert-damger">
City is required!!
</div>
</div>
</div>
<div class="row">
<div class="col">
<label for="">State</label>
<input type="text" class="form-control" id="stat" required [(ngModel)]="adress.state" name="state" #state="ngModel">
<div [hidden]="state.valid || state.pristine" class="alet alert-damger">
Country is required!!
</div>
</div>
<div class="col">
<label for="">Country</label>
<input type="text" class="form-control" id="country" required [(ngModel)]="adress.country" name="country" #country="ngModel">
<div [hidden]="country.valid || country.pristine" class="alet alert-damger">
Country is required!!
</div>
</div>
<div class="col">
<label for="">Zip Code</label>
<input type="text" class="form-control" id="zipCode" required [(ngModel)]="adress.zipCode" name="zipCode" #zipCode="ngModel">
<div [hidden]="zipCode.valid || zipCode.pristine" class="alet alert-damger">
Zip Code is required!!
</div>
</div>
</div>
</div>